diff options
author | Charles Bailey <cbailey32@bloomberg.net> | 2015-12-02 20:50:07 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-12-04 14:05:18 -0800 |
commit | 7966230b7d5baaa7f889446bc2173f899c4d65e0 (patch) | |
tree | e3b32ea020d7a2df84b535aa835c47f456d00754 /t | |
parent | 1db168ee971a6a61ce72480e1db9ddfd3629bfcf (diff) | |
download | git-7966230b7d5baaa7f889446bc2173f899c4d65e0.tar.gz |
t3404: fix quoting of redirect for some versions of bashcb/t3404-shellquote
As CodingGuidelines says, some versions of bash errors out when
$variable substitution is used as the target for redirection without
being quoted (even though POSIX may not require such a quote).
Signed-off-by: Charles Bailey <cbailey32@bloomberg.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t3404-rebase-interactive.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh index 88d7d5358a..01701aa7a7 100755 --- a/t/t3404-rebase-interactive.sh +++ b/t/t3404-rebase-interactive.sh @@ -1213,7 +1213,7 @@ test_expect_success 'tabs and spaces are accepted in the todolist' ' # Turn single spaces into space/tab mix sed "1s/ / /g; 2s/ / /g; 3s/ / /g" "$1" printf "\n\t# comment\n #more\n\t # comment\n" - ) >$1.new + ) >"$1.new" mv "$1.new" "$1" EOF test_set_editor "$(pwd)/add-indent.sh" && |