) >a/b/.gitattributes
        (
                echo "global test=global"
-       ) >$HOME/global-gitattributes
+       ) >"$HOME"/global-gitattributes
 
 '
 
 
 test_expect_success 'attribute test: read paths from stdin' '
 
-       cat <<EOF > expect
+       cat <<EOF > expect &&
 f: test: f
 a/f: test: f
 a/c/f: test: f