From 078653c6c7983b70acabd34c9822727c212c57c3 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 5 Apr 2022 14:45:56 +0200 Subject: [PATCH] modulecmd: unsetting aliases 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 68a79cd..e5ac9ad 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -744,7 +744,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}"