Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:21

Shawn Pearce [off-list ref] 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"
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help