---------- Forwarded message ----------
From: Douglas Mencken <dougmenc...@gmail.com>
Date: Sun, Aug 12, 2012 at 11:18 AM
Subject: Re: [cdesktopenv-devel] [PATCH] some tweaks for configRun:
add -h/--usage option, use portable print instead of echo \c, etc.
To: Marc Balmer <m...@msys.ch>


> what is the gain of replacing echo with printf?

Well, echo "smth \c" and even echo -n "smth" is not very portable.
Many shells don't support neither "\c" (well, even bash doesn't, just
try to run configRun -v on your side) nor `-n' for echo escape chars.

The only compatible way is to use printf.

> is printf also builtin in the shell or is /usr/bin/printf used?

It's up to the shell. If there's such built-in, then it will be used.
If not, then printf from $PATH will be called.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to