diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-04-19 13:05:26 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-19 13:33:40 -0700 |
commit | 27187817e4527696e513afcbec7e0503a89ec93a (patch) | |
tree | 1c16348b9194d438a963e7e09d82e38fb4a8717b | |
parent | Merge branch 'jc/maint-verify-objects-remove-pessimism' into maint-1.7.8 (diff) | |
download | tgif-27187817e4527696e513afcbec7e0503a89ec93a.tar.xz |
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>
-rwxr-xr-x | t/t9400-git-cvsserver-server.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t9400-git-cvsserver-server.sh b/t/t9400-git-cvsserver-server.sh index 9199550ef4..173bf3d4af 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 ' #------------ |