From 94e7c72a14018dbb26a1aec9a2445e2cdcf4d298 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 18 May 2022 10:23:31 +0200 Subject: [PATCH] MODULEPATH initialisation issue fixed --- Pmodules/modulecmd.bash.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index d25f34d..3ae39ff 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1797,7 +1797,7 @@ subcommand_refresh() { # # help function, used during initialization and for purging all modules # -reset_modulepath() { +init_modulepath() { declare -gx MODULEPATH='' local group local ol @@ -1832,7 +1832,7 @@ init_manpath() { } pmodules_init() { - reset_used_groups() { + init_used_groups() { declare -gx UsedGroups='' local group for group in ${DefaultGroups//:/ }; do @@ -1840,7 +1840,7 @@ pmodules_init() { done g_env_must_be_saved='yes' } - reset_used_releases() { + init_used_releases() { declare -g UsedReleaseStages='' for r in ${DefaultReleaseStages//:/ }; do std::append_path UsedReleaseStages "${r}" @@ -1856,11 +1856,11 @@ pmodules_init() { declare -ag UsedFlags=() declare -g Version="${PMODULES_VERSION}" - reset_used_groups - reset_modulepath - reset_used_releases - init_manpath + init_used_groups + init_used_releases init_overlay_vars + init_modulepath + init_manpath export_env \ LOADEDMODULES \ _LMFILES_ \ @@ -1958,7 +1958,7 @@ subcommand_purge() { # 'unstable module has been loaded' subcommand_load "${pmodule}" 2> /dev/null fi - reset_modulepath + init_modulepath export_env MODULEPATH PMODULES_HOME }