mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 01:53:08 +02:00
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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user