git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: problem installing latest cogito

From
Petr Baudis <pasky@suse.cz>
Date
Jan 21, 2006, 20:03 UTC
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 <seanlkml@sympatico.ca> said that...

Show 23 quoted lines
> On Sat, 21 Jan 2006 20:48:26 +0100
> Petr Baudis <pasky@suse.cz> 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
Previous: Petr BaudisNext: sean
Message 9 of 10 in “problem installing latest cogito”
  1. dave morganJan 21, 2006
  2. Petr BaudisJan 21, 2006
  3. seanJan 21, 2006
  4. Junio C HamanoJan 21, 2006
  5. Petr BaudisJan 21, 2006
  6. dave morganJan 21, 2006
  7. dave morganJan 21, 2006
  8. Petr BaudisJan 21, 2006
  9. Petr BaudisJan 21, 2006
  10. seanJan 21, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.