Hallo Laurent!

>> I think echo in shell scripts is more portable than printf.
>  True, but mdev (and all the /proc/sys and /dev handling) isn't exactly
> portable anyway, so this particular shell script will never be used
> on anything else than Linux... and userland Linux tools (busybox as well
> as coreutils) indeed have printf. ;)

True ... it will work ... my intention is to keep things less confusing
if possible. Most shell scripts use echo for normal messages and printf
only if formatting is required. That is, what I think is less confusing.
In addition printf "...\n" needs extra LF, echo does implicite.

... nevertheless it is personal preference. Didn't want to criticism,
just wondered about not really required printf usage here ... and yes,
I've seen your smiley, just want to explain my intention (to make Gilles
not worry about).

--
Harald
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to