Skip to content
Advertisement

modulefile – module unload is not unsetting environment variables

I have a very simple modulefile:

JavaScript

And here is my command line:

JavaScript

According to the modulefile man page unload module command was supposed to turn all setenv’s to unsetenv but it doesn’t seem to be working. Does anyone know what I might be doing wrong here?

More information:

JavaScript

For those unfamiliar with modulefiles (they do not seem to be that popular):

  • modulefile is a simple bit of code that set or add entries to the PATH, MANPATH, or other environment variables
  • modulefiles hide the notion of different types of shells
  • modulefiles are written in the Tool Command Language, Tcl and are interpreted by the modulecmd program via the module user interface

Advertisement

Answer

This is apparently working as intended: http://sourceforge.net/tracker/?func=detail&aid=2384340&group_id=15538&atid=115538

It seems you are expected to run module unload example_modulefile without giving it the full path to the module file.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement