On Mon, Dec 17, 2012 at 5:14 PM, sven falempin <[email protected]> wrote:
> So much to just print ...
>
> so:
> 1 echo is crap (not portable, not very usefull)
> 2 print is doing echo job in ksh  print [-nprsu[n] | -R [-en]] [argument
> ...] (but this is completly different on pengouinOS)
> 3 printf is everywhere and works fine

Ah, misc@, how I miss you...

echo is perfectly safe and portable for printing, followed by a
newline, a literal string that doesn't start with a minus sign.

That happens to be
a) a *really* common need, and
b) a task solved by the historical echo command.


If that's not what you need, you should be considering printf instead
of writing a non-portable echo.


> why do echo exist , now i wonder ...

Is that a serious question?  If so, the cost of converting all 5
trillions uses of 'echo' to printf, 99+% of which would not benefit
from the conversion, didn't make you say "wow, converting them would
be a fucking waste of time!"?  Really?


Philip Guenther

Reply via email to