From bf030e81b5279681ed06d440bdaf916371f9e8ec Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 28 Apr 2021 00:47:59 +0200 Subject: [PATCH] modulecmd.bash.in: subcommand_load(): update Dir2OverlayMap - after loading a module the dictionary mapping a directory to an overlay must be updated if a new hierarchical group was added --- Pmodules/modulecmd.bash.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index aa37ae7..7e28f24 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -646,7 +646,9 @@ subcommand_load() { while read dir; do [[ "${dir: -1}" == "/" ]] || dir+="/" LOADEDMODULES="${LOADEDMODULES//${dir}}" + get_overlay_of_moduledir overlay "${dir}" done <<< "${MODULEPATH//:/$'\n'}" + g_env_must_be_saved='yes' export_env 'LOADEDMODULES' }