@matheusbsbs / matheus-bagliano / commits / 3183286238
Fork 0

t/t9001: use egrep when regular expressions are involved

Supplying backslashed, extended regular expressions to grep is not portable. Use egrep instead. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Brandon Casey committed Jun 28, 2010 at 17:46 UTC 3183286238f7b0b4f491963ffc05bb47b35e487d
1 file changed +3 -3
t/t9001-send-email.sh
+3 -3
@@ -943,7 +943,7 @@ test_expect_success 'asks about and fixes 8bit encodings' '
943 grep "do not declare a Content-Transfer-Encoding" stdout &&
944 grep email-using-8bit stdout &&
945 grep "Which 8bit encoding" stdout &&
946 - grep "Content\\|MIME" msgtxt1 >actual &&
946 + egrep "Content|MIME" msgtxt1 >actual &&
947 test_cmp actual content-type-decl
948 '
949
@@ -954,7 +954,7 @@ test_expect_success 'sendemail.8bitEncoding works' '
954 git send-email --from=author@example.com --to=nobody@example.com \
955 --smtp-server="$(pwd)/fake.sendmail" \
956 email-using-8bit >stdout &&
957 - grep "Content\\|MIME" msgtxt1 >actual &&
957 + egrep "Content|MIME" msgtxt1 >actual &&
958 test_cmp actual content-type-decl
959 '
960
@@ -966,7 +966,7 @@ test_expect_success '--8bit-encoding overrides sendemail.8bitEncoding' '
966 --smtp-server="$(pwd)/fake.sendmail" \
967 --8bit-encoding=UTF-8 \
968 email-using-8bit >stdout &&
969 - grep "Content\\|MIME" msgtxt1 >actual &&
969 + egrep "Content|MIME" msgtxt1 >actual &&
970 test_cmp actual content-type-decl
971 '
972