t/t5100: no need to use 'echo' command substitutions for globbing
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>
Johannes Sixt committed
Dec 22, 2015 at 19:35 UTC
6ffd3ec88c477bb73e3a149bf6475a1df1a51ab0
1 file changed
+2
-2
t/t5100-mailinfo.sh
+2
-2
@@ -23,7 +23,7 @@ check_mailinfo () {
23
}
24
25
26
-for mail in $(echo 00*)
26
+for mail in 00*
27
do
28
test_expect_success "mailinfo $mail" '
29
check_mailinfo $mail "" &&
@@ -51,7 +51,7 @@ test_expect_success 'split box with rfc2047 samples' \
51
echo total is $last &&
52
test $(cat rfc2047/last) = 11'
53
54
-for mail in $(echo rfc2047/00*)
54
+for mail in rfc2047/00*
55
do
56
test_expect_success "mailinfo $mail" '
57
git mailinfo -u $mail-msg $mail-patch <$mail >$mail-info &&