Void sh points to dash yet LFS wants bash
Thinking of building an LFS system again.
I'm currently running Void Linux. /bin/sh is a sym link to dash. LFS book says it should be a sym link to bash. Bash is installed in my system but I wonder if bash's emulation of sh is the same as dash's. Will anything in Void break if I change the sym link to point to bash? If I leave the sym link, will anything break in the LFS scripts and/or commands? Thank you. |
Most likely not. Worst case bash should be installed, just create a temp symlink to it and use the new symlink to open the shell as you work on your lfs. Is what I would do anyway. You can also enter a bash shell by typing bash in the shell. it will go to a subshell of sorts that is bash... at least as long as bash isn't also symlinked to dash.
|
istr there are some "bashisms" in LFS builds that won't work if dash is the system shell. At least that used to be the case.
|
Its not so much that LFS uses so called 'bashisms' ( in fact I think they dont ) but some build systems use a hard coded BASH, just symlink sh->/bin/bash it wont hurt, you can always put it back later.
|
Quote:
Quote:
However, Bash says: Quote:
So as a superset it is still possible that invoking Bash as /bin/sh has Bash-specific behaviour in areas which POSIX has not defined, but that would be bad practice and unnecessary since anything needing Bash behaviour can easily just use /bin/bash instead. If LFS does do use Bash-specific behaviour via /bin/sh, manually updating any commands/scripts to use "/bin/bash --posix" instead of "/bin/sh" should work, without needing to swap the /bin/sh symlink, (even if that might be a simpler option). |
All times are GMT -5. The time now is 05:48 PM. |