diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 68a79cd..e5ac9ad 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -744,7 +744,7 @@ subcommand_unload() { local arg for arg in "${args[@]}"; do local output=$("${modulecmd}" "${Shell}" 'unload' "${arg}") - eval "${output}" + eval "$(echo "${output}"|sed -e 's/;unalias [^;]*//g')" case ${Shell} in sh | bash | zsh ) echo "${output}"