modulecmd: unsetting aliases in sub-command 'purge' fixed

This commit is contained in:
2022-04-05 17:48:51 +02:00
parent 8d290b5b23
commit ba0e6a7ce0
+1 -1
View File
@@ -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