]> git.ipfire.org Git - thirdparty/git.git/commitdiff
test-bzr: do not use unportable sed '\+'
authorTorsten Bögershausen <tboegi@web.de>
Sat, 11 May 2013 13:25:52 +0000 (15:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 11 May 2013 19:51:19 +0000 (12:51 -0700)
Using sed -e '/[0-9]\+//' to find "one or more digits" is not
portable.

Use the Basic Regular Expression '/[0-9][0-9]*//' instead.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/test-bzr.sh

index d9c32f4864745320b6594d614849035db0c95606..5dfa070b64e6e4607adaa436d4aa839c9de5f9e4 100755 (executable)
@@ -328,7 +328,7 @@ test_expect_success 'strip' '
 
   echo four >> content &&
   bzr commit -m four &&
-  bzr log --line | sed -e "s/^[0-9]\+: //" > ../expected
+  bzr log --line | sed -e "s/^[0-9][0-9]*: //" > ../expected
   ) &&
 
   (cd gitrepo &&