Merge branch '281-modulecmd-loading-multiple-modules-doesn-t-work-any-more' into 'master'

Resolve "modulecmd: loading multiple modules doesn't work any more"

Closes #281

See merge request Pmodules/src!259
This commit is contained in:
2024-07-12 11:19:18 +02:00
+1 -2
View File
@@ -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