Re: problem installing latest cogito
From: sean <hidden>
Date: 2016-06-15 22:42:17
On Sat, 21 Jan 2006 20:48:26 +0100 Petr Baudis [off-list ref] wrote:
quoted
sed -e 's/\${COGITO_LIB}/\${COGITO_LIB:-\/home\/david\/lib\/cogito\/}/g; \ s/\${COGITO_SHARE}/\${COGITO_SHARE:-\/home\/david\/share\/cogito\/}/g' \ $file > $file.new; \ cat $file.new > $file; rm $file.new; \ done sed: -e expression #1, char 145: unterminated address regex
The problem seems to go away if you remove the quoted end-of-line:
sed -e 's/\${COGITO_LIB}/\${COGITO_LIB:-\/home\/david\/lib\/cogito\/}/g;
s/\${COGITO_SHARE}/\${COGITO_SHARE:-\/home\/david\/share\/cogito\/}/g'
where the following, doesn't:
sed -e 's/\${COGITO_LIB}/\${COGITO_LIB:-\/home\/david\/lib\/cogito\/}/g; \
s/\${COGITO_SHARE}/\${COGITO_SHARE:-\/home\/david\/share\/cogito\/}/g'
Sean