Skip to content

Commit

Permalink
t8005: use egrep when extended regular expressions are required
Browse files Browse the repository at this point in the history
Not all versions of grep understand backslashed extended regular
expressions.  Possibly only gnu grep does.

Signed-off-by: Brandon Casey <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
drafnel authored and gitster committed May 6, 2009
1 parent 6a260f5 commit 0b05dc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t8005-blame-i18n.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ EOF
test_expect_success \
'blame respects i18n.commitencoding' '
git blame --incremental file | \
grep "^\(author\|summary\) " > actual &&
egrep "^(author|summary) " > actual &&
test_cmp actual expected
'

Expand All @@ -53,7 +53,7 @@ test_expect_success \
'blame respects i18n.logoutputencoding' '
git config i18n.logoutputencoding cp1251 &&
git blame --incremental file | \
grep "^\(author\|summary\) " > actual &&
egrep "^(author|summary) " > actual &&
test_cmp actual expected
'

Expand All @@ -69,7 +69,7 @@ EOF
test_expect_success \
'blame respects --encoding=utf-8' '
git blame --incremental --encoding=utf-8 file | \
grep "^\(author\|summary\) " > actual &&
egrep "^(author|summary) " > actual &&
test_cmp actual expected
'

Expand All @@ -85,7 +85,7 @@ EOF
test_expect_success \
'blame respects --encoding=none' '
git blame --incremental --encoding=none file | \
grep "^\(author\|summary\) " > actual &&
egrep "^(author|summary) " > actual &&
test_cmp actual expected
'

Expand Down

0 comments on commit 0b05dc2

Please sign in to comment.