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

clear sub-command does not remove MODULES_LMSOURCESH #367

Closed
xdelaruelle opened this issue Nov 8, 2020 · 0 comments
Closed

clear sub-command does not remove MODULES_LMSOURCESH #367

xdelaruelle opened this issue Nov 8, 2020 · 0 comments
Labels
Milestone

Comments

@xdelaruelle
Copy link
Member

When clear sub-command is invoked it does not remove the MODULES_LMSOURCESH variable (which contains the source-sh state of loaded modules)

$ module use testsuite/modulefiles.2/
$ ml source-sh/5.1
$ ml clear
Are you sure you want to clear all loaded modules!? [n] y
$ echo $MODULES_LMSOURCESH 
source-sh/5.1&bash testsuite/example/sh-to-mod.sh arg1 arg2|prepend-path FOOPATH /path/to/dir1 /path/to/dir2 /path/to/dir3|prepend-path FOOPATHCB /path/to/dir1 /path/to/d\{r2 /path/to/dir3|prepend-path FOOPATHEM {} /path/to/dir1 /path/to/dir2 /path/to/dir3|set-alias alcb {}|set-alias alem {}|set-alias alfoo {}|set-alias alsp {}|set-function funccb {}|set-function funcfoo {}|set-function funcnl {}|set-function funcsp {}|setenv FOO value|setenv FOOARG1 arg1|setenv FOOARG2 arg2|setenv FOOCB va\{ue|setenv FOOEM {}|setenv FOOPATHSP {/path/to/dir1 /path/to/dir2 /path/to/dir3}|setenv FOOPATHSPEM {/path/to/dir1 /path/to/dir2 /path/to/dir3 }|setenv FOOSP {value }&sh testsuite/example/mini-sh-to-mod.sh|prepend-path FOOPATH /path/to/mini|set-alias almini {}|setenv FOOMINI value
@xdelaruelle xdelaruelle added the bug label Nov 8, 2020
@xdelaruelle xdelaruelle added this to the 4.6.1 milestone Nov 8, 2020
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