Merge branch '157-set-alias-in-modulefile-is-broken' into 'master'

Resolve "set-alias in modulefile is broken"

Closes #157

See merge request Pmodules/src!129
This commit is contained in:
2022-04-05 12:47:26 +00:00
+1 -1
View File
@@ -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}"