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

Re: [PATCH] Add missing semicolon to sed command.

From
Junio C Hamano <junkio@cox.net>
Date
Mar 20, 2006, 02:15 UTC
Message-ID
<7v1wwxn9nn.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060320001808.GB20765@spearce.org>
Shawn Pearce <spearce@spearce.org> writes:
> generate-cmdlist.sh is giving errors messages from sed on Mac OS
> 10.4 due to a missing semicolon.

I'll take this patch for now, but I've heard a horror story that some other vintage of sed apparently does not like multiple commands separated by semicolons at all, and I've been training myself to do this kind of thing always as multi-line sed script, like this:

     sed -n '
     /NAME/,/git-'"$cmd"'/H
     ${
            x
            s/.*git-'"$cmd"' - \(.*\)/  {"'"$cmd"'", "\1"},/
	    p
     }' "Documentation/git-$cmd.txt"
Previous: Shawn Pearce
Message 2 of 2 in “Add missing semicolon to sed command.”
  1. Add missing semicolon to sed command.Shawn Pearce, Mar 20, 2006
  2. Junio C HamanoMar 20, 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.