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