Browse Source

remote-helpers/test-bzr.sh: do not use "grep '\s'"

Using grep "devel\s\+3:" to find at least one whitspace is not
portable on all grep versions; not all grep versions understand "\s"
as a "whitespace".

Use a literal TAB followed by SPACE.

The + as a qualifier for "one or more" is not a basic regular
expression; use egrep instead of grep.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Torsten Bögershausen 12 years ago committed by Junio C Hamano
parent
commit
0e9b327227
  1. 2
      contrib/remote-helpers/test-hg.sh

2
contrib/remote-helpers/test-hg.sh

@ -115,7 +115,7 @@ test_expect_success 'update bookmark' ' @@ -115,7 +115,7 @@ test_expect_success 'update bookmark' '
git push
) &&

hg -R hgrepo bookmarks | grep "devel\s\+3:"
hg -R hgrepo bookmarks | egrep "devel[ ]+3:"
'

test_done

Loading…
Cancel
Save