From 3eb18304436cfe1067f6e3d5a86f351b8c19cf6f Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 28 Apr 2021 00:26:42 +0200 Subject: [PATCH] modulecmd.bash.in: save_env(): no need to export UsedGroups --- Pmodules/modulecmd.bash.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 9592945..1752c24 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -112,6 +112,7 @@ save_env() { local s=$(typeset -p ${vars[@]}) declare -g PMODULES_ENV=$( "${base64}" --wrap=0 <<< "$s" ) export_env 'PMODULES_ENV' + unset UsedGroups } trap 'save_env ' EXIT