Browse Source

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>
maint
Ralf Wildenhues 17 years ago committed by Junio C Hamano
parent
commit
063036af08
  1. 3
      git-bisect.sh

3
git-bisect.sh

@ -275,7 +275,8 @@ exit_if_skipped_commits () { @@ -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

Loading…
Cancel
Save