diff options
author | Stephen Boyd <bebarino@gmail.com> | 2010-01-26 15:08:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-26 15:16:54 -0800 |
commit | 9524cf29930b4f91d68ad1384d7f984393a54c15 (patch) | |
tree | fec23ec235813a482b7d3d9e2bf187c9ddd8b2ef /git-rebase--interactive.sh | |
parent | 24072c0256a520408575416fe8706667b576ff99 (diff) | |
download | git-9524cf29930b4f91d68ad1384d7f984393a54c15.tar.gz |
fix portability issues with $ in double quotes
Using a dollar sign in double quotes isn't portable. Escape them with
a backslash or replace the double quotes with single quotes.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase--interactive.sh')
-rwxr-xr-x | git-rebase--interactive.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 9187e9bdba..19a608c27f 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -407,7 +407,7 @@ update_squash_messages () { } peek_next_command () { - sed -n -e "/^#/d" -e "/^$/d" -e "s/ .*//p" -e "q" < "$TODO" + sed -n -e "/^#/d" -e '/^$/d' -e "s/ .*//p" -e "q" < "$TODO" } # A squash/fixup has failed. Prepare the long version of the squash |