@matheusbsbs / matheus-bagliano / commits / 063036af08
Fork 0

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 <Ralf.Wildenhues@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ralf Wildenhues committed Nov 8, 2007 at 22:48 UTC 063036af0832710cfcb1380cc4f9c4597b98cc26
1 file changed +2 -1
git-bisect.sh
+2 -1
@@ -275,7 +275,8 @@ exit_if_skipped_commits () {
275 if expr "$_tried" : ".*[|].*" > /dev/null ; then
276 echo "There are only 'skip'ped commit left to test."
277 echo "The first bad commit could be any of:"
278 - echo "$_tried" | sed -e 's/[|]/\n/g'
278 + echo "$_tried" | sed -e 's/[|]/\
279 +/g'
280 echo "We cannot bisect more!"
281 exit 2
282 fi