Skip to content

Commit 3183286

Browse files
drafnelgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent edac188 commit 3183286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t9001-send-email.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ test_expect_success 'asks about and fixes 8bit encodings' '
943943
grep "do not declare a Content-Transfer-Encoding" stdout &&
944944
grep email-using-8bit stdout &&
945945
grep "Which 8bit encoding" stdout &&
946-
grep "Content\\|MIME" msgtxt1 >actual &&
946+
egrep "Content|MIME" msgtxt1 >actual &&
947947
test_cmp actual content-type-decl
948948
'
949949

@@ -954,7 +954,7 @@ test_expect_success 'sendemail.8bitEncoding works' '
954954
955955
--smtp-server="$(pwd)/fake.sendmail" \
956956
email-using-8bit >stdout &&
957-
grep "Content\\|MIME" msgtxt1 >actual &&
957+
egrep "Content|MIME" msgtxt1 >actual &&
958958
test_cmp actual content-type-decl
959959
'
960960

@@ -966,7 +966,7 @@ test_expect_success '--8bit-encoding overrides sendemail.8bitEncoding' '
966966
--smtp-server="$(pwd)/fake.sendmail" \
967967
--8bit-encoding=UTF-8 \
968968
email-using-8bit >stdout &&
969-
grep "Content\\|MIME" msgtxt1 >actual &&
969+
egrep "Content|MIME" msgtxt1 >actual &&
970970
test_cmp actual content-type-decl
971971
'
972972

0 commit comments

Comments
 (0)