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>
Charles Bailey committed
Dec 2, 2015 at 20:50 UTC
7966230b7d5baaa7f889446bc2173f899c4d65e0
1 file changed
+1
-1
t/t3404-rebase-interactive.sh
+1
-1
@@ -1213,7 +1213,7 @@ test_expect_success 'tabs and spaces are accepted in the todolist' '
1213
# Turn single spaces into space/tab mix
1214
sed "1s/ / /g; 2s/ / /g; 3s/ / /g" "$1"
1215
printf "\n\t# comment\n #more\n\t # comment\n"
1216
- ) >$1.new
1216
+ ) >"$1.new"
1217
mv "$1.new" "$1"
1218
EOF
1219
test_set_editor "$(pwd)/add-indent.sh" &&