#2646: scripts should use printf instead of echo
--------------------------+-------------------------------------------------
Reporter: tito_puentes | Owner: lfs-b...@…
Type: defect | Status: new
Priority: normal | Milestone: 6.7
Component: Bootscripts | Version: SVN
Severity: major | Keywords: echo printf POSIX
--------------------------+-------------------------------------------------
1. POSIX doesn't define flags for echo, making the /bin/sh shebang
misleading. This is notorious when using ksh or dash as /bin/sh.
2. Forking to /bin/echo (assuming that the shell's builtin doesn't have
the requirements, and that the binary is there in the first place) for
every boot message is expensive and unnecesary.
3. init.d/functions is now simplified and marginally faster since it does
not need to determine echo's functionality every time that it is sourced.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2646>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page