Skip to content

clear sub-command does not remove MODULES_LMSOURCESH #367

@xdelaruelle

Description

@xdelaruelle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions