test-bzr: do not use unportable sed '\+'

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>
This commit is contained in:
Torsten Bögershausen 2013-05-11 15:25:52 +02:00 committed by Junio C Hamano
parent 9249175291
commit 8d97506e4b

View File

@ -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 &&