From: sean Date: Sat, 21 Jan 2006 19:49:01 GMT Subject: Re: problem installing latest cogito Message-ID: In-Reply-To: <20060121194826.GK28365@pasky.or.cz> On Sat, 21 Jan 2006 20:48:26 +0100 Petr Baudis wrote: > > 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