From ba0e6a7ce0d496f2b759cf34c62091e584d9388e Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 5 Apr 2022 17:48:51 +0200 Subject: [PATCH] modulecmd: unsetting aliases in sub-command 'purge' fixed --- Pmodules/modulecmd.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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