From 7c500b7bf348f24417d7ca684f9cc4715d108408 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 f98eb41..5827f15 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -639,7 +639,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}"