Skip to content

Commit

Permalink
remote-helpers/test-bzr.sh: do not use "grep '\s'"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Torsten Bögershausen authored and Junio C Hamano committed Apr 7, 2013
1 parent 072dda6 commit 0e9b327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/remote-helpers/test-hg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0e9b327

Please sign in to comment.