JHALFS - BLFS /bin/sh > /bin/dash nitpic

Bruce Dubbs bruce.dubbs at gmail.com
Tue May 19 20:03:49 PDT 2009

Trent Shea wrote:
> Hello,
> I just started to work with jhalfs and BLFS and believe that I have come 
> across a bug.
> The first package I installed was dash, which went smooth. The second package 
> failed with the following:
> /bin/sh: source: not found
> It turns out that dash does not recognize 'source,' but rather '.'. I tried a 
> number of shells, the majority accept '.' or 'source'.
> After a bit of reading (IEEE Std 1003.1, 2004 Edition) it appears that you may 
> set the makefile's shell with the variable 'SHELL' to get around this. And 
> furthermore setting 'SHELL' in the makefile leaves the environment variable 
> untouched for any scripts that the Makefile runs.
> I've confirmed the behaviour described above on my system. If someone could 
> confirm it would a patch to set 'SHELL=/bin/bash' in 'BLFS/gen-makefile.sh' be 
> considered?

The LFS book, iv. Host System Requirements, already says:

"Your host system should have the following software with the minimum versions 


Bash-2.05a  (/bin/sh should be a symbolic or hard link to bash)"

   -- Bruce

More information about the alfs-discuss mailing list