Thread (9 messages) flat view 9 messages, 7 authors, 2016-06-15

Re: [PATCH] Replace "echo -n" with printf in shell scripts.

From: Julian Phillips <hidden>
Date: 2016-06-15 22:42:49

On Wed, 17 Jan 2007, Junio C Hamano wrote:
"Horst H. von Brand" [off-list ref] writes:
quoted
Junio C Hamano [off-list ref] wrote:
quoted
Jason Riedy [off-list ref] writes:
quoted
Not all echos know -n.  This was causing a test failure in
t5401-update-hooks.sh, but not t3800-mktag.sh for some reason.
We have done this already so it might be too late to raise this
question, but does everybody have printf?
Here (Fedora rawhide) /usr/bin/printf is part of coreutils.
I am reasonably sure people on Linux land would be fine
regardless of distros, but thanks anyway.

The problematic are less common ones, ranging from (not so less
common) OSX, Solaris to (much less common) AIX that some people
seem to run git on (or at least compile git for).
printf is a bash builtin ... not sure about other shells.

-- 
Julian

  ---
A lifetime isn't nearly long enough to figure out what it's all about.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help