author | Jason Riedy <ejr@EECS.Berkeley.EDU> | |
Tue, 6 Dec 2005 22:21:52 +0000 (14:21 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 7 Dec 2005 02:09:12 +0000 (18:09 -0800) | ||
commit | 9754563ca9a99bc0fe233f43202af15704fbed4d | |
tree | 4d347609c38cb8f9ec23c28a9d56dea6bf0bd2af | tree | snapshot |
parent | e23eff8be92a2a2cb66b53deef020063cff285ed | commit | 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 <ejr@cs.berkeley.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 <ejr@cs.berkeley.edu>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-am.sh | diff | blob | history | |
git-applypatch.sh | diff | blob | history | |
git-bisect.sh | diff | blob | history | |
git-status.sh | diff | blob | history |