From 9a0d55ed85b3ce769eef0315dc82dd74d63a8fa0 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 6 May 2021 09:25:26 +0200 Subject: [PATCH] modulecmd: save environment after unloading a module --- Pmodules/modulecmd.bash.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 5502845..d593fc0 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -729,6 +729,7 @@ subcommand_unload() { PMODULES_HOME=${saved_home} export_env 'PMODULES_HOME' fi + g_env_must_be_saved='yes' } ##############################################################################