summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Bailey <cbailey32@bloomberg.net>2015-12-02 20:50:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-12-04 22:05:18 (GMT)
commit7966230b7d5baaa7f889446bc2173f899c4d65e0 (patch)
treee3b32ea020d7a2df84b535aa835c47f456d00754
parent1db168ee971a6a61ce72480e1db9ddfd3629bfcf (diff)
downloadgit-7966230b7d5baaa7f889446bc2173f899c4d65e0.zip
git-7966230b7d5baaa7f889446bc2173f899c4d65e0.tar.gz
git-7966230b7d5baaa7f889446bc2173f899c4d65e0.tar.bz2
t3404: fix quoting of redirect for some versions of bash
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>
-rwxr-xr-xt/t3404-rebase-interactive.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh
index 88d7d53..01701aa 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" &&