Why does swapping module with '--delim' option is broken in environment-modules ?

Solution Verified - Updated -

Issue

Swapping of module with --delim option is broken in environment-modules 3.2.9.

See the following reproducer:

1. $ export MODULEPATH=~/modules/module/
2. $ cat ~/modules/module/module1
#%Module
append-path -d " " testpath "-I/mpidir1"

3. $ cat ~/modules/module/module2
#%Module
append-path -d " " testpath "-I/mpidir2"

4. $ module load module1
5. $ echo $testpath
6. $ module switch module1 module2
7. $ echo $testpath
8. $ module unload module2
9. $ echo $testpath

Actual results:

5.
-I/mpidir1
7.
I/mpidir2
9.
I/mpidir2


Expected results:

5.
-I/mpidir1
7.
-I/mpidir2
9.
<empty>

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • environment-modules 3.2.9c-4.el6.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.