diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index f98eb41..5827f15 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -639,7 +639,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}"