summaryrefslogtreecommitdiff
path: root/git-sh-setup.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-18 11:59:50 -0700
committerJunio C Hamano <gitster@pobox.com>2013-09-18 11:59:51 -0700
commitb25b9d5939b9ae35a728e1dbdc3a0fea03c79c4d (patch)
treedb8338dc222d1cb5a16a5488f0f0b3ef694a8625 /git-sh-setup.sh
parentdd42145b1e953fe579778c13a3ad34aa59aa95fe (diff)
parent89b0230a20e435c02effafd3de16bb105d652505 (diff)
Merge branch 'mm/no-shell-escape-in-die-message' into maint
Fixes a minor bug in "git rebase -i" (there could be others, as the root cause is pretty generic) where the code feeds a random, data dependeant string to 'echo' and expects it to come out literally. * mm/no-shell-escape-in-die-message: die_with_status: use "printf '%s\n'", not "echo"
Diffstat (limited to 'git-sh-setup.sh')
-rw-r--r--git-sh-setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index 7a964ad2ff..e15be51636 100644
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -53,7 +53,7 @@ die () {
die_with_status () {
status=$1
shift
- echo >&2 "$*"
+ printf >&2 '%s\n' "$*"
exit "$status"
}