Skip to content

Commit 0feb4d1

Browse files
committed
t/t{3600,3800,5401}: do not use egrep when grep would do
There is nothing _wrong_ with egrep per se, but this way we would have less dependency on external tools. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 90ed6c0 commit 0feb4d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

t/t3600-rm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ test_expect_success '"rm" command printed' '
127127
git add test-file &&
128128
git commit -m "add file for rm test" &&
129129
git rm test-file > rm-output &&
130-
test `egrep "^rm " rm-output | wc -l` = 1 &&
130+
test `grep "^rm " rm-output | wc -l` = 1 &&
131131
rm -f test-file rm-output &&
132132
git commit -m "remove file from rm test"
133133
'

t/t3800-mktag.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ check_verify_failure () {
1515
test_expect_success \
1616
"$1" \
1717
'git-mktag <tag.sig 2>message ||
18-
egrep -q -f expect.pat message'
18+
grep -q -f expect.pat message'
1919
}
2020

2121
###########################################################

t/t5401-update-hooks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ STDOUT post-update
129129
STDERR post-update
130130
EOF
131131
test_expect_success 'send-pack stderr contains hook messages' '
132-
egrep ^STD send.err >actual &&
132+
grep ^STD send.err >actual &&
133133
git diff - actual <expect
134134
'
135135

0 commit comments

Comments
 (0)