From c80d57d7b744abee129d01e0e5514a3d69ab3314 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 1 Jul 2022 16:37:39 +0200 Subject: [PATCH] modulefile: source shell init script only in mode 'load' --- Pmodules/modulefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pmodules/modulefile b/Pmodules/modulefile index 8dec4df..866568f 100644 --- a/Pmodules/modulefile +++ b/Pmodules/modulefile @@ -22,7 +22,7 @@ if { [module-info mode load] } { } remove-path C_INCLUDE_PATH "$PREFIX/include" remove-path CPLUS_INCLUDE_PATH "$PREFIX/include" -} -set shell [module-info shell] -puts "source \"$PREFIX/init/$shell\"" + set shell [module-info shell] + puts "source \"$PREFIX/init/$shell\"" +} \ No newline at end of file