From 3aa7c3b587b446837df26d64b4ed76e5e6ad63e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20B=C3=B6gershausen?= Date: Sun, 7 Apr 2013 10:48:30 +0200 Subject: [PATCH] remote-helpers/test-bzr.sh: do not use "grep '\s'" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- test-hg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-hg.sh b/test-hg.sh index 5f81dfa..7bb81f2 100755 --- a/test-hg.sh +++ b/test-hg.sh @@ -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