[lfs-support] bash vs dash

Bruce Dubbs bruce.dubbs at gmail.com
Sat Jan 5 13:17:14 PST 2013

Richard Coffee wrote:
>> -----Original Message-----
>>>> My error with this page, even after having built one or two versions of
>>>> LFS, was that the last line:
>>>> "gcc compilation OK"
>>>> that made me ignore the other lines, when some of these lines were
>>>> telling me that I had requirements to fix.
>>> my script aborts if /bin/sh is not bash, awk not gawk or yacc not bison.
>>> if awk or yacc are scripts, i show a message to check the script.
>> The idea of the script was that it should be short.  Generally the
>> problem is that the symlinks are not set and occasionally makeinfo is
>> not installed.  Rarely is the problem an out-of-date executable.
> I have a suggestion.
> At the bottom of the list, which the average person will pay more attention to anyway, add this test:
>   [ $(readlink /bin/sh) == dash ] && echo FIX ME!
> or perhaps:
>   if [ $(readlink /bin/sh) == dash ]; then
>      echo FIX ME!
>   fi

I think I can touch the script up a bit.

   -- Bruce

More information about the lfs-support mailing list