Skip to content

Commit 7966230

Browse files
hashplinggitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1db168e commit 7966230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t3404-rebase-interactive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ test_expect_success 'tabs and spaces are accepted in the todolist' '
12131213
# Turn single spaces into space/tab mix
12141214
sed "1s/ / /g; 2s/ / /g; 3s/ / /g" "$1"
12151215
printf "\n\t# comment\n #more\n\t # comment\n"
1216-
) >$1.new
1216+
) >"$1.new"
12171217
mv "$1.new" "$1"
12181218
EOF
12191219
test_set_editor "$(pwd)/add-indent.sh" &&

0 commit comments

Comments
 (0)