Merge branch '158-unsetting-aliases-in-sub-command-purge-is-broken' into 'master'

Resolve "unsetting aliases in sub-command 'purge' is broken"

Closes #158

See merge request Pmodules/src!130
This commit is contained in:
2022-04-05 15:50:18 +00:00
+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