From 9754563ca9a99bc0fe233f43202af15704fbed4d Mon Sep 17 00:00:00 2001 From: Jason Riedy Date: Tue, 6 Dec 2005 14:21:52 -0800 Subject: Use printf rather than echo -n. On AIX, there is no -n option to the system's echo. Instead, it needs the '\c' control character. We could replace echo -n "foo" with echo -e "foo\c" but printf is recommended by most man pages. Tested on AIX 5.3, Solaris 8, and Debian. [jc: futureproofed two instances that uses variable with '%s' so later feeding different messages would not break things too easily; others are emitting literal so whoever changes the literal ought to notice more easily so they are safe.] Signed-off-by: E. Jason Riedy Signed-off-by: Junio C Hamano --- git-applypatch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-applypatch.sh') diff --git a/git-applypatch.sh b/git-applypatch.sh index 4c577eb835..a112e1a504 100755 --- a/git-applypatch.sh +++ b/git-applypatch.sh @@ -83,7 +83,7 @@ while [ "$interactive" = yes ]; do echo "--------------------------" cat "$final" echo "--------------------------" - echo -n "Apply? [y]es/[n]o/[e]dit/[a]ccept all " + printf "Apply? [y]es/[n]o/[e]dit/[a]ccept all " read reply case "$reply" in y|Y) interactive=no;; -- cgit v1.2.3