From: Ralf Wildenhues Date: Thu, 8 Nov 2007 21:48:24 +0000 (+0100) Subject: git-bisect.sh: Fix sed script to work with AIX and BSD sed. X-Git-Tag: v1.5.4-rc0~244 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=063036af0832710cfcb1380cc4f9c4597b98cc26;p=git.git git-bisect.sh: Fix sed script to work with AIX and BSD sed. \n is not portable in a s/// replacement string, only in the regex part. backslash-newline helps. Signed-off-by: Ralf Wildenhues Signed-off-by: Junio C Hamano --- diff --git a/git-bisect.sh b/git-bisect.sh index b74f44df6..1ed44e56a 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -275,7 +275,8 @@ exit_if_skipped_commits () { if expr "$_tried" : ".*[|].*" > /dev/null ; then echo "There are only 'skip'ped commit left to test." echo "The first bad commit could be any of:" - echo "$_tried" | sed -e 's/[|]/\n/g' + echo "$_tried" | sed -e 's/[|]/\ +/g' echo "We cannot bisect more!" exit 2 fi