From 17f26a9ee3298dfa0a1df7cd4e5f5f32342e5f62 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 14 Jan 2009 16:29:59 -0800 Subject: git-am: fix shell quoting Noticed by Stephan Beyer; the new test is mine. Signed-off-by: Junio C Hamano --- git-am.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-am.sh') diff --git a/git-am.sh b/git-am.sh index 7e6329b14c..4beb12dcf5 100755 --- a/git-am.sh +++ b/git-am.sh @@ -38,7 +38,7 @@ sq () { for sqarg do printf "%s" "$sqarg" | - sed -e 's/'\''/'\''\'\'''\''/g' -e 's/.*/ '\''&'\''/' + sed -e 's/'\''/'\''\\'\'''\''/g' -e 's/.*/ '\''&'\''/' done } -- cgit v1.2.3