提交 4d2e283a 编写于 作者: J Junio C Hamano

git-am: re-fix the diag message printing

The $FIRSTLINE variable is from the user's commit and can contain
arbitrary backslash escapes that may be (mis)interpreted when given to
"echo", depending on the implementation.  Use "printf" to work around the
issue.
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 a70d4100
......@@ -501,7 +501,7 @@ do
fi
if test $apply_status != 0
then
echo "Patch failed at $msgnum $FIRSTLINE"
printf 'Patch failed at %s %s\n' "$msgnum" "$FIRSTLINE"
stop_here_user_resolve $this
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册