Add missing semicolon to sed command.
PATCH 1/1 Add missing semicolon to sed command.
generate-cmdlist.sh is giving errors messages from sed on Mac OS 10.4 due to a missing semicolon.
---
generate-cmdlist.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
base f81e7c626f34658289594386b0273755f47912a2
last 09913c10d93adbfa61138b7ac7ae6a8a210aa29f
generate-cmdlist.sh +1 -1
@@ -42,7 +42,7 @@ EOF while read cmd do sed -n "/NAME/,/git-$cmd/H; - \$ {x; s/.*git-$cmd - \\(.*\\)/ {\"$cmd\", \"\1\"},/; p}" \ + \$ {x; s/.*git-$cmd - \\(.*\\)/ {\"$cmd\", \"\1\"},/; p;}" \ "Documentation/git-$cmd.txt" done echo "};"
Signature · 1 line
1.2.4.g41f6
Quoted 2 lines · Shawn Pearce
generate-cmdlist.shis 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"