From 45df61cc9c4b51fe174c8187099aefbfabf5de7b Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 12 Jul 2024 11:18:17 +0200 Subject: [PATCH] modulecmd: loading multiple modules fixed --- Pmodules/modulecmd.bash.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index b86a1c5..fa56973 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -712,10 +712,9 @@ subcommand_load() { (( ${#args[@]} == 0 )) && \ die_missing_arg - IFS=':' read -r -a modulepath <<< "${MODULEPATH}" - local m='' for m in "${args[@]}"; do + IFS=':' read -r -a modulepath <<< "${MODULEPATH}" if [[ "$m" =~ ":" ]]; then # extendet module name is either