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

The + as a qualifier for "one or more" is not a basic regular expression:
use egrep instead of grep.
Use a literal TAB followed by SPACE like this [  ] instead,
which is more portable than [:space:] 

Signed-off-by: Torsten Bögershausen <>
 contrib/remote-helpers/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/remote-helpers/ 
index 5f81dfa..7bb81f2 100755
--- a/contrib/remote-helpers/
+++ b/contrib/remote-helpers/
@@ -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:"

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to