From: Petr Baudis Date: Sat, 21 Jan 2006 20:03:45 GMT Subject: Re: problem installing latest cogito Message-ID: <20060121200345.GL28365@pasky.or.cz> In-Reply-To: <20060121144901.33b03395.seanlkml@sympatico.ca> Dear diary, on Sat, Jan 21, 2006 at 08:49:01PM CET, I got a letter where sean said that... > 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' Yes, the problem goes away because then make will split that to two lines, causing: sed -e 's/\${COGITO_LIB}/\${COGITO_LIB:-\/home\/xpasky\/lib\/cogito\/}/g; /bin/sh: -c: line 0: unexpected EOF while looking for matching `'' /bin/sh: -c: line 1: syntax error: unexpected end of file -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ Of the 3 great composers Mozart tells us what it's like to be human, Beethoven tells us what it's like to be Beethoven and Bach tells us what it's like to be the universe. -- Douglas Adams