]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/t5100: no need to use 'echo' command substitutions for globbing
authorJohannes Sixt <j6t@kdbg.org>
Tue, 22 Dec 2015 18:35:16 +0000 (19:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Dec 2015 21:36:50 +0000 (13:36 -0800)
Instead of making the shell expand 00* and invoke 'echo' with it,
and then capturing its output as command substitution, just use
the result of expanding 00* directly.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5100-mailinfo.sh

index 4e52b3b50c1f1d0a7728d587d981338e054c6ea9..85b3df5e339b668688873c27244c458443bb6e6a 100755 (executable)
@@ -23,7 +23,7 @@ check_mailinfo () {
 }
 
 
-for mail in $(echo 00*)
+for mail in 00*
 do
        test_expect_success "mailinfo $mail" '
                check_mailinfo $mail "" &&
@@ -51,7 +51,7 @@ test_expect_success 'split box with rfc2047 samples' \
        echo total is $last &&
        test $(cat rfc2047/last) = 11'
 
-for mail in $(echo rfc2047/00*)
+for mail in rfc2047/00*
 do
        test_expect_success "mailinfo $mail" '
                git mailinfo -u $mail-msg $mail-patch <$mail >$mail-info &&