wc in Bootscripts

DJ Lucas dj at linuxfromscratch.org
Thu Apr 7 20:26:09 PDT 2005


Matthias Berndt wrote:
> Greetings,
> 
> wouldn't it make sense to move 'wc' from '/usr/bin' to '/bin' like
> other tools in the coreutils-package to prevent some more or less
> cryptic constructions in '/etc/rc.d/init.d/functions'? FHS don't tell me
> anything against this idea.
> 
> Matthias Berndt

You are refering to the character counting in boot_mesg().
Unfortunately, wc is plain messed up WRT UTF8.  libtextwrap would have
been a much better solution, but not fitting for a base LFS.  Take a
look at these threads in the archives for a little background information.

This thread started in October 2004:
http://archives.linuxfromscratch.org/mail-archives/lfs-hackers/2004-October/002621.html

and ending in November 2004:
http://archives.linuxfromscratch.org/mail-archives/lfs-hackers/2004-November/002748.html

and:
http://archives.linuxfromscratch.org/mail-archives/lfs-hackers/2004-November/002828.html

-- DJ Lucas



More information about the lfs-dev mailing list