Works for me. I can use module use correctly (i.e., it does not overwrite MODULEPATH). Thanks for the update!
Works for me. I can use module use correctly and no /usr/bin/ps errors show up upon starting a new shell. Thanks for the update!
Looking good now. Thanks!
$ ssh localhost
...
$ echo $0
-bash
$ ml
No modules loaded
$ ml lmod
$ ml
Currently Loaded Modules:
1) lmod/6.3.1
$ bash
$ echo $0
bash
$ ml
Currently Loaded Modules:
1) lmod/6.3.1
$ csh
$ echo $0
csh
$ ml
Currently Loaded Modules:
1) lmod/6.3.1
Not yet :-)
/usr/bin/ps is hardcoded in /etc/profile.d/z00_lmod.sh
$ ssh localhost
...
-bash: /usr/bin/ps: No such file or directory
/bin/basename: missing operand
Try `/bin/basename --help' for more information.
$ grep '/usr/bin/ps' /etc/profile.d/*
/etc/profile.d/z00_lmod.sh: my_shell=$(/usr/bin/ps -p $$ -ocomm=)
Confirming dependency problem on Lmod-6.3.1-1.el6.x86_64.rpm
# rpm -i Lmod-6.3.1-1.el6.x86_64.rpm
error: Failed dependencies:
/usr/bin/ps is needed by Lmod-6.3.1-1.el6.x86_64
$ type ps
ps is hashed (/bin/ps)
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
Works for me now. Thanks for the update.
The following is an example of how
module useworks for me on RHEL 7 (i.e.,MODULEPATHkeeps it value within subshells):