Skip to content
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

modulecmd.tcl returns 0 exit code when module evaluation fail #540

Closed
xdelaruelle opened this issue Sep 8, 2024 · 0 comments
Closed

modulecmd.tcl returns 0 exit code when module evaluation fail #540

xdelaruelle opened this issue Sep 8, 2024 · 0 comments
Labels
Milestone

Comments

@xdelaruelle
Copy link
Member

As seen when working on easybuilders/easybuild-framework#4625, if module evaluation fails (modulefile does not exist or is buggy) modulecmd.tcl script exits with a 0 value.

It is expected that a command exits with a non-zero value if something unexpected happens.

This is especially important for tools that directly execute the modulecmd.tcl script, like EasyBuild, instead of using the module function.

@xdelaruelle xdelaruelle added the bug label Sep 8, 2024
@xdelaruelle xdelaruelle added this to the 5.5.0 milestone Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant