From 6ef4dd3667ca775161addcbef4a873accd2646cd Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 13 May 2019 16:47:17 +0200 Subject: [PATCH] bugs in initialization of PATH fixed in modulecmd.bash.in - prepend Pmodules bin directory to PATH - export MANPATH --- Pmodules/modulecmd.bash.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index dd163d4..a52ba79 100755 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -1410,7 +1410,7 @@ subcommand_list() { init_path() { std::replace_path PATH "${PMODULES_HOME%/*}/.*" - std::append_path PATH "${PMODULES_HOME}/bin" + std::prepend_path PATH "${PMODULES_HOME}/bin" } init_manpath() { @@ -1450,7 +1450,8 @@ pmodules_init() { LOADEDMODULES \ _LMFILES_ \ MODULEPATH \ - PATH + PATH \ + MANPATH } ##############################################################################