Skip to content

Commit

Permalink
git-bisect.sh: Fix sed script to work with AIX and BSD sed.
Browse files Browse the repository at this point in the history
\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>
  • Loading branch information
Ralf Wildenhues authored and Junio C Hamano committed Nov 9, 2007
1 parent f3fa183 commit 063036a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-bisect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 063036a

Please sign in to comment.