Skip to content

Commit 0b05dc2

Browse files
drafnelgitster
authored andcommitted
t8005: use egrep when extended regular expressions are required
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]>
1 parent 6a260f5 commit 0b05dc2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t8005-blame-i18n.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ EOF
3636
test_expect_success \
3737
'blame respects i18n.commitencoding' '
3838
git blame --incremental file | \
39-
grep "^\(author\|summary\) " > actual &&
39+
egrep "^(author|summary) " > actual &&
4040
test_cmp actual expected
4141
'
4242

@@ -53,7 +53,7 @@ test_expect_success \
5353
'blame respects i18n.logoutputencoding' '
5454
git config i18n.logoutputencoding cp1251 &&
5555
git blame --incremental file | \
56-
grep "^\(author\|summary\) " > actual &&
56+
egrep "^(author|summary) " > actual &&
5757
test_cmp actual expected
5858
'
5959

@@ -69,7 +69,7 @@ EOF
6969
test_expect_success \
7070
'blame respects --encoding=utf-8' '
7171
git blame --incremental --encoding=utf-8 file | \
72-
grep "^\(author\|summary\) " > actual &&
72+
egrep "^(author|summary) " > actual &&
7373
test_cmp actual expected
7474
'
7575

@@ -85,7 +85,7 @@ EOF
8585
test_expect_success \
8686
'blame respects --encoding=none' '
8787
git blame --incremental --encoding=none file | \
88-
grep "^\(author\|summary\) " > actual &&
88+
egrep "^(author|summary) " > actual &&
8989
test_cmp actual expected
9090
'
9191

0 commit comments

Comments
 (0)