Re: [lfs-support] bash vs dash

2013-01-05 Thread Richard Coffee


 -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

just my two cents.

richard


FREE ONLINE PHOTOSHARING - Share your photos online with your friends and 
family!
Visit http://www.inbox.com/photosharing to find out more!


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] bash vs dash

2013-01-05 Thread Bruce Dubbs
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



-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page