Skip to content

Commit 2718781

Browse files
committed
t9400: fix gnuism in grep
Using "\+" in "grep" and expecting that it means one or more is a GNUism. Spell it in a dumb and portable way. Signed-off-by: Junio C Hamano <[email protected]>
1 parent b1bcfbe commit 2718781

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t9400-git-cvsserver-server.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ test_expect_success 'cvs status (no subdirs in header)' '
500500
cd "$WORKDIR"
501501
test_expect_success 'cvs co -c (shows module database)' '
502502
GIT_CONFIG="$git_config" cvs co -c > out &&
503-
grep "^master[ ]\+master$" < out &&
504-
! grep -v "^master[ ]\+master$" < out
503+
grep "^master[ ][ ]*master$" <out &&
504+
! grep -v "^master[ ][ ]*master$" <out
505505
'
506506

507507
#------------

0 commit comments

Comments
 (0)