diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 53b62b1..765efcb 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -892,6 +892,8 @@ subcommand_load() { fi test -r "${deps_file}" && load_dependencies "$_" + [[ ":${LOADEDMODULES}:" == *:${m}:* ]] && continue + # load module modulecmd="${interp[${current_modulefile}]}" local output=''