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 <gitster@pobox.com>
Junio C Hamano committed
Apr 19, 2012 at 13:05 UTC
27187817e4527696e513afcbec7e0503a89ec93a
1 file changed
+2
-2
t/t9400-git-cvsserver-server.sh
+2
-2
@@ -500,8 +500,8 @@ test_expect_success 'cvs status (no subdirs in header)' '
500
cd "$WORKDIR"
501
test_expect_success 'cvs co -c (shows module database)' '
502
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
505
'
506
507
#------------