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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 06ac01a commit e806c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)