path: root/
diff options
authorJason Riedy <ejr@EECS.Berkeley.EDU>2005-12-06 22:21:52 (GMT)
committerJunio C Hamano <>2005-12-07 02:09:12 (GMT)
commit9754563ca9a99bc0fe233f43202af15704fbed4d (patch)
tree4d347609c38cb8f9ec23c28a9d56dea6bf0bd2af /
parente23eff8be92a2a2cb66b53deef020063cff285ed (diff)
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 <>
Diffstat (limited to '')
1 files changed, 1 insertions, 1 deletions
diff --git a/ b/
index 660b3a4..6ed527c 100755
--- a/
+++ b/
@@ -312,7 +312,7 @@ do
echo "--------------------------"
cat "$dotest/final-commit"
echo "--------------------------"
- echo -n "Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all "
+ printf "Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all "
read reply
case "$reply" in
[yY]*) action=yes ;;