Skip to content

Commit

Permalink
test-bzr: do not use unportable sed '\+'
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
tboegi authored and gitster committed May 11, 2013
1 parent 9249175 commit 8d97506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/remote-helpers/test-bzr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 8d97506

Please sign in to comment.