#12 Make it possible to use variables in $MODULEPATH

open
nobody
None
4
2013-08-22
2013-08-22
Robin Bjorklin
No

This is really a simple feature to implement. When MODULEPATH is set from within \<MOD INSTALL DIR>/init/[tcsh,csh,bash,zsh,...] just prepend the setenv/export MODULEPATH line with eval.

I.E.

eval setenv MODULEPATH sed -n 's/[ #].*$//; /./H; $ { x; s/^\n//; s/\n/:/g; p; }' ${MODULESHOME}/init/.modulespath

Discussion