summaryrefslogtreecommitdiff
path: root/t/t5100-mailinfo.sh
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2015-12-22 18:35:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-12-28 21:36:50 (GMT)
commit6ffd3ec88c477bb73e3a149bf6475a1df1a51ab0 (patch)
tree589bc0ad1cf4c1cfaeaf028932fc41933394093a /t/t5100-mailinfo.sh
parent20cffb72355345b6dc8b64ed10e080217ecc7ce0 (diff)
downloadgit-6ffd3ec88c477bb73e3a149bf6475a1df1a51ab0.zip
git-6ffd3ec88c477bb73e3a149bf6475a1df1a51ab0.tar.gz
git-6ffd3ec88c477bb73e3a149bf6475a1df1a51ab0.tar.bz2
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>
Diffstat (limited to 't/t5100-mailinfo.sh')
-rwxr-xr-xt/t5100-mailinfo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh
index 4e52b3b..85b3df5 100755
--- a/t/t5100-mailinfo.sh
+++ b/t/t5100-mailinfo.sh
@@ -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 &&