summaryrefslogtreecommitdiff
path: root/t/t9400-git-cvsserver-server.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-04-19 20:05:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-19 20:33:40 (GMT)
commit27187817e4527696e513afcbec7e0503a89ec93a (patch)
tree1c16348b9194d438a963e7e09d82e38fb4a8717b /t/t9400-git-cvsserver-server.sh
parentb1bcfbe34439ff6d1a04d0bddb01eebe4df418a5 (diff)
downloadgit-27187817e4527696e513afcbec7e0503a89ec93a.zip
git-27187817e4527696e513afcbec7e0503a89ec93a.tar.gz
git-27187817e4527696e513afcbec7e0503a89ec93a.tar.bz2
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>
Diffstat (limited to 't/t9400-git-cvsserver-server.sh')
-rwxr-xr-xt/t9400-git-cvsserver-server.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t9400-git-cvsserver-server.sh b/t/t9400-git-cvsserver-server.sh
index 9199550..173bf3d 100755
--- a/t/t9400-git-cvsserver-server.sh
+++ b/t/t9400-git-cvsserver-server.sh
@@ -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
'
#------------