t9400: fix gnuism in grep
authorJunio C Hamano <gitster@pobox.com>
Thu, 19 Apr 2012 20:05:26 +0000 (13:05 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Apr 2012 20:33:40 +0000 (13:33 -0700)
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>
t/t9400-git-cvsserver-server.sh

index 9199550ef4ffa39e4ce8bdb36badfd723e95e55f..173bf3d4afd7f6315c5ae887b98098a8815eaf16 100755 (executable)
@@ -500,8 +500,8 @@ test_expect_success 'cvs status (no subdirs in header)' '
 cd "$WORKDIR"
 test_expect_success 'cvs co -c (shows module database)' '
     GIT_CONFIG="$git_config" cvs co -c > out &&
-    grep "^master[      ]\+master$" < out &&
-    ! grep -v "^master[         ]\+master$" < out
+    grep "^master[      ][     ]*master$" <out &&
+    ! grep -v "^master[         ][     ]*master$" <out
 '
 
 #------------