Environment Modules Updates

Querying user's name and groups membership

by Xavier Delaruelle
Two new sub-commands are introduced for the module-info modulefile command: username and usergroups. They respectively fetch the name of the user currently running modulecmd.tcl or the name of all the groups this user is member of...
new feature
v4.6

Embed shell scripts in modulefiles

by Xavier Delaruelle
The source-sh modulefile command is introduced to source environment changes done by the evaluation of a shell script passed as argument. With newly introduced sh-to-mod sub-command resulting environment changes done by script are output...
new feature
v4.6

Translating shell scripts into modulefiles

by Xavier Delaruelle
The sh-to-mod sub-command is added to output as a modulefile content the environment changes done by the evaluation of a shell script passed as argument. sh-to-mod is especially useful for software providing a shell script for their...
new feature
v4.6

Automatic default and latest symbolic versions

by Xavier Delaruelle
When the implicit default mechanism and the advanced module version specifiers are both enabled, a default and a latest symbolic versions are automatically defined for each module name. This new feature gives the ability to select the...
v4.5
new feature

Error stack trace

by Xavier Delaruelle
Error messages will now embed a stack trace for unknown errors to help localize the root cause of issues. This change applies to modulefile evaluation: Loading foo/1.2 Module ERROR: add-path cannot handle path equals to...
v4.5
new feature

Improved Windows support

by Xavier Delaruelle
A new option to the ./configure script named --enable-windows-support is introduced to install additional files relative to the enablement of Modules on the Windows platform. When set, this option installs module.cmd, ml.cmd and envml...
new feature
v4.5

JSON format output

by Xavier Delaruelle
The -j and --json command line switches are added for the avail, list, savelist, whatis and search module sub-commands. When set, the output result of these sub-commands is rendered in JSON format: $ module avail --json bar | python...
new feature
v4.5

ml command

by Xavier Delaruelle
The ml command is added to Modules. ml is a frontend to the module command that reduces the number of characters to type to trigger module actions. With no argument provided ml is equivalent to module list, ml foo corresponds to module...
new feature
v4.5

Extended default

by Xavier Delaruelle
The extended default mechanism has been introduced to help selecting a module when only the first numbers in its version are specified. Starting portion of the version, part separated from the rest of the version string by a . character...
new feature
v4.4