diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 5827f15..48e29b7 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1489,7 +1489,7 @@ subcommand_purge() { # re-run with right shell "${modulecmd}" "${Shell}" 'purge' fi - eval "${output}" + eval "$(echo "${output}"|sed -e 's/;unalias [^;]*//g')" if [[ -n "${error}" ]]; then echo "${error}" 1>&2 fi