[LFS Trac] #2646: scripts should use printf instead of echo

LFS Trac trac at linuxfromscratch.org
Sun May 9 18:47:06 PDT 2010

#2646: scripts should use printf instead of echo
 Reporter:  tito_puentes  |       Owner:  lfs-book@…                   
     Type:  defect        |      Status:  new                          
 Priority:  low           |   Milestone:  6.7                          
Component:  Bootscripts   |     Version:  SVN                          
 Severity:  minor         |    Keywords:  echo printf POSIX            

Comment(by bon):

 > AFAICT, the stty sane bit can go, so we could put a lighter weight test
 case in each bootscript and source functions at each runlevel change to
 eliminate that

 are you saying you're going to source them once per runlevel?

 then you'd have to export the functions, and export -f is a bashism

 not to mention that exporting that many vars to begin with is bound to
 cause conflicts

Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2646#comment:7>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.

More information about the lfs-book mailing list