Skip to content

Commit

Permalink
t/t9001: use egrep when regular expressions are involved
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brandon Casey authored and Junio C Hamano committed Jun 29, 2010
1 parent edac188 commit 3183286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/t9001-send-email.sh
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ test_expect_success 'asks about and fixes 8bit encodings' '
grep "do not declare a Content-Transfer-Encoding" stdout &&
grep email-using-8bit stdout &&
grep "Which 8bit encoding" stdout &&
grep "Content\\|MIME" msgtxt1 >actual &&
egrep "Content|MIME" msgtxt1 >actual &&
test_cmp actual content-type-decl
'

Expand All @@ -954,7 +954,7 @@ test_expect_success 'sendemail.8bitEncoding works' '
git send-email --from=author@example.com --to=nobody@example.com \
--smtp-server="$(pwd)/fake.sendmail" \
email-using-8bit >stdout &&
grep "Content\\|MIME" msgtxt1 >actual &&
egrep "Content|MIME" msgtxt1 >actual &&
test_cmp actual content-type-decl
'

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

Expand Down

0 comments on commit 3183286

Please sign in to comment.