Code

t0003: properly quote $HOME
authorThomas Rast <trast@student.ethz.ch>
Mon, 18 Oct 2010 09:09:54 +0000 (11:09 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Oct 2010 21:12:31 +0000 (14:12 -0700)
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>
t/t0003-attributes.sh

index 25205ac0ee5397452428a02698a35d04f72cd501..e75153bdea05d2e34570aaf03fbb3902694ddedf 100755 (executable)
@@ -38,7 +38,7 @@ test_expect_success 'setup' '
        ) >a/b/.gitattributes
        (
                echo "global test=global"
-       ) >$HOME/global-gitattributes
+       ) >"$HOME"/global-gitattributes
 
 '