]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t0008: avoid brace expansion
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 10 Jan 2013 21:24:52 +0000 (22:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Jan 2013 22:47:35 +0000 (14:47 -0800)
Brace expansion is a shell feature that's not required by POSIX and not
supported by dash nor NetBSD's sh.  Explicitly list all combinations
instead.  Also avoid calling touch by creating the test files with a
redirection instead, as suggested by Junio.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0008-ignores.sh

index 9b0fcd610d2fe0bd6e2dae1303dd3c49492ac283..d7df7198c4379216616a8a0de06bc4f5ec724a42 100755 (executable)
@@ -129,8 +129,13 @@ test_expect_success 'setup' '
                one
                ignored-*
        EOF
-       touch {,a/}{not-ignored,ignored-{and-untracked,but-in-index}} &&
-       git add -f {,a/}ignored-but-in-index
+       for dir in . a
+       do
+               : >$dir/not-ignored &&
+               : >$dir/ignored-and-untracked &&
+               : >$dir/ignored-but-in-index
+       done &&
+       git add -f ignored-but-in-index a/ignored-but-in-index &&
        cat <<-\EOF >a/.gitignore &&
                two*
                *three