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 <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Brandon Casey committed
May 6, 2009 at 13:31 UTC
0b05dc2b7e929996afa3f325cce593585f3ec9b3
1 file changed
+4
-4
t/t8005-blame-i18n.sh
+4
-4
@@ -36,7 +36,7 @@ EOF
36
test_expect_success \
37
'blame respects i18n.commitencoding' '
38
git blame --incremental file | \
39
- grep "^\(author\|summary\) " > actual &&
39
+ egrep "^(author|summary) " > actual &&
40
test_cmp actual expected
41
'
42
@@ -53,7 +53,7 @@ test_expect_success \
53
'blame respects i18n.logoutputencoding' '
54
git config i18n.logoutputencoding cp1251 &&
55
git blame --incremental file | \
56
- grep "^\(author\|summary\) " > actual &&
56
+ egrep "^(author|summary) " > actual &&
57
test_cmp actual expected
58
'
59
@@ -69,7 +69,7 @@ EOF
69
test_expect_success \
70
'blame respects --encoding=utf-8' '
71
git blame --incremental --encoding=utf-8 file | \
72
- grep "^\(author\|summary\) " > actual &&
72
+ egrep "^(author|summary) " > actual &&
73
test_cmp actual expected
74
'
75
@@ -85,7 +85,7 @@ EOF
85
test_expect_success \
86
'blame respects --encoding=none' '
87
git blame --incremental --encoding=none file | \
88
- grep "^\(author\|summary\) " > actual &&
88
+ egrep "^(author|summary) " > actual &&
89
test_cmp actual expected
90
'
91