From daead01197aec7ef060b076edd75af765abfbbfd Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 6 May 2021 07:25:26 +0000 Subject: [PATCH] modulecmd: save environment after unloading a module (cherry picked from commit 9a0d55ed85b3ce769eef0315dc82dd74d63a8fa0) --- Pmodules/modulecmd.bash.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 124c95d..f630ddf 100755 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -642,6 +642,7 @@ subcommand_unload() { PMODULES_HOME=${saved_home} export_env 'PMODULES_HOME' fi + g_env_must_be_saved='yes' } ##############################################################################