-
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
I have taken your diffs and merged them into Lmod. I have tested the changes as best I can by forcing the configure step to use dash. Also, I have created the Lmod branch IS741-dash and pushed it to github. Please test this branch to see if it works for you and let me know the results thru this issue. Thanks very much for creating the issue and the fix you provided! |
Thanks for looking into this! I gave it a try, but it failed with |
I have updated the IS741-dash branch with your fixes. Please test this updated version in branch IS741-dash so that this can be merged into the main branch. Thanks for reporting this bug! |
Thanks! I've tested it in a Ubuntu container (after running
|
Great! Thanks for working with me on this issue. I'm closing this issue. Feel free to re-open this issue if necessary. |
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: