Module unload command does not work from within a module file
Issue
module unloadcommand does not work from within a module file.- The complete reproducer:
[root@localhost test]# cat first
#%Module
append-path PATH /home
[root@localhost test]# cat second
#%Module
module unload first --> This line will unload the module named "first"
[root@localhost test]# module list
No Modulefiles Currently Loaded.
[root@localhost test]# module load /home/test/first --> This will load module named "first"
[root@localhost test]# module list --> module named "first" is loaded
Currently Loaded Modulefiles:
1) /home/test/first
[root@localhost test]# module load /home/test/second --> This will load module named "second"
[root@localhost test]# module list --> both modules are loaded.
Here module named "first" should
have been unloaded since the module
named "second" contains a line which
will unload the module named "first" )
Currently Loaded Modulefiles:
1) /home/test/first 2) /home/test/second
Environment
- Red Hat Enterprise Linux (RHEL) 6
- environment-modules-3.2.10-1.el6_5.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.