modulecmd: unsetting aliases fixed

This commit is contained in:
2022-04-05 15:43:39 +02:00
parent e8f9e3476a
commit 078653c6c7
+1 -1
View File
@@ -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}"