Skip to content

Commit 0e9b327

Browse files
tboegigitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 072dda6 commit 0e9b327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/remote-helpers/test-hg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test_expect_success 'update bookmark' '
115115
git push
116116
) &&
117117
118-
hg -R hgrepo bookmarks | grep "devel\s\+3:"
118+
hg -R hgrepo bookmarks | egrep "devel[ ]+3:"
119119
'
120120

121121
test_done

0 commit comments

Comments
 (0)