Skip to content

Commit e806c43

Browse files
trastgitster
authored andcommitted
t0003: properly quote $HOME
6df42ab (Add global and system-wide gitattributes, 2010-09-01) forgot to quote one instance of $HOME in the tests. This would be valid according to POSIX, but bash 4 helpfully declines to execute the command in question with an "ambiguous redirection" error. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 06ac01a commit e806c43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

t/t0003-attributes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ test_expect_success 'setup' '
3838
) >a/b/.gitattributes
3939
(
4040
echo "global test=global"
41-
) >$HOME/global-gitattributes
41+
) >"$HOME"/global-gitattributes
4242
4343
'
4444

0 commit comments

Comments
 (0)