From 7983a032210c9e595db65705db47d1c3bdd6f02d Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 13 Dec 2021 09:36:47 +0100 Subject: [PATCH] modulecmd: bugfix in unloading overlay --- Pmodules/modulecmd.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index ad0ff91..f998084 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1679,7 +1679,7 @@ subcommand_unuse() { fi unset "OverlayDict[${ol_dir}]" - OverlayList=( "${OverlayList[@]}") + OverlayList=( "${OverlayList[@]:1}") g_env_must_be_saved='yes' export_env OverlayList local dir