-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configure
script doesn't work on dash
-only systems
#741
Comments
I tried to change the lines that do not work for dash, and then the |
This is a full diff of my
|
configure
script fails with Bad substitution
for dash
shellsconfigure
script doesn't work on dash
-only systems
Describe the bug
While bumping the Lmod version in Gentoo (gentoo/gentoo#39798), it was reported that the
configure
script fails for a few people (also see https://bugs.gentoo.org/890939) who usedash
for/bin/sh
. It seems there are some dash-incompatible checks (e.g. https://github.com/TACC/Lmod/blob/main/configure#L4438 and https://github.com/TACC/Lmod/blob/main/configure#L4462, where the substring expansion is not supported ondash
, but there are more).I tried to reproduce this, and it seems like it only happens on systems with
/bin/sh -> dash
and which don't havebash
at all (otherwiseconfigure
is picking upbash
anyway?). That made me wonder ifdash
-only is supposed to be supported by Lmod? If not, maybe it would be nice if it could detect this and fail with a clear error message? If it is supported, some checks need to be changed to something that is supported bydash
.To Reproduce
Steps to reproduce the behavior:
Run
./configure
on a system withoutbash
installed, and with/bin/sh -> dash
. This is a small reproducer that shows why it breaks in this case:Expected behavior
The
./configure
script completes without errors or gives a clear error aboutdash
-only not being supported.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: