[1.16.2/mdev] "Can't open /proc/sys/kernel/hotplug"

Harald Becker ralda at gmx.de
Mon May 30 13:32:28 UTC 2011


 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


More information about the busybox mailing list