From 35081f59ce6f3dbd965894067c273d1713c154c4 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 23 Aug 2024 13:08:19 +0200 Subject: [PATCH] modulecmd: bugfix: use of wrong shell in sub-cmd unload --- 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 1b443e8..4f9ed1e 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1011,7 +1011,7 @@ subcommand_unload() { is_modulefile modulecmd "${lmfile}" || die_not_a_modulefile "${arg}" local output='' - output=$("${modulecmd}" "${Shell}" 'unload' "${arg}") + output=$("${modulecmd}" 'bash' 'unload' "${arg}") if [[ -n "${output}" ]]; then eval "$(echo "${output}"|${sed} -e 's/;unalias [^;]*//g')" fi