Description of problem: createmodule scripts incorrectly handle the variables which old value is prefixed/suffixed with other than colon delimiter in the new env. It could cause problems when updating paths in environment: # export TESTVAR2=origvalue # export TESTVAR3=origvalue # export TESTVAR8=origvalue # export TESTVAR9=origvalue # cat testscript.sh export TESTVAR2=origvalue/suffix export TESTVAR3=prefix/origvalue ### The following is not so crucial, but still: export TESTVAR8=prefix/origvalue: export TESTVAR9=prefix:origvalue: # /usr/share/Modules/bin/createmodule.sh testscript.sh | tee mymodule #%Module 1.0 append-path TESTVAR2 origvalue/suffix prepend-path TESTVAR3 prefix/origvalue prepend-path TESTVAR8 prefix/ prepend-path TESTVAR9 prefix: # module load ./mymodule # env | grep TESTVAR TESTVAR3=prefix/origvalue:origvalue TESTVAR2=origvalue:origvalue/suffix TESTVAR8=prefix/:origvalue TESTVAR9=prefix::origvalue And then the same scenario using the Python script: In the module: append-path TESTVAR2 /suffix prepend-path TESTVAR3 prefix prepend-path TESTVAR8 prefix append-path TESTVAR8 . prepend-path TESTVAR8 prefix append-path TESTVAR8 . prepend-path TESTVAR9 prefix append-path TESTVAR9 . prepend-path TESTVAR9 prefix append-path TESTVAR9 . Expected: TESTVAR2=origvalue/suffix TESTVAR3=prefix/origvalue TESTVAR8=prefix/origvalue: TESTVAR9=prefix:origvalue: Given: TESTVAR2=origvalue:/suffix TESTVAR3=prefix:origvalue TESTVAR8=prefix:origvalue:. TESTVAR9=prefix:origvalue:. Version-Release number of selected component (if applicable): environment-modules-3.2.10-8.fc21.x86_64 (applies for all 3.2.10-* ) Expected results: Either implement better logic to handle these or mark prefixed/suffixed variables without colon as unhandled
Hmm, I wonder what bug 976369 is. Nice to know that these scripts are actually used (or at least attempted to be used). I'll try to take a look.
The bug 976369 is a rebase request for environment-modules in RHEL-6. Part of the request was also to add the createmodule* helper scripts. So yes, your scripts are actually in demand:)
environment-modules-3.2.10-14.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/environment-modules-3.2.10-14.fc20
Package environment-modules-3.2.10-14.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing environment-modules-3.2.10-14.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-2982/environment-modules-3.2.10-14.fc20 then log in and leave karma (feedback).
environment-modules-3.2.10-14.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.