Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2010-06-29 02:46:22 +0400
committerJunio C Hamano <gitster@pobox.com>2010-06-29 20:31:48 +0400
commit3183286238f7b0b4f491963ffc05bb47b35e487d (patch)
tree42c6de9c56b79e52a332c2afeb273079be3444a0
parentedac1883dc5fbadbc2d7d7cf975ed347eaef0702 (diff)
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>
-rwxr-xr-xt/t9001-send-email.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 0b8a591507..382ab6c98a 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -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
'
@@ -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
'
@@ -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
'