Specify modules in a case insensitive manner
timestamp1573462620001
The ability to match module name in a case insensitive manner has been added. This feature can be enabled at different level with the following values set to the icase
configuration option:
never
: a case sensitive match is applied in any casessearch
: a case insensitive match is applied to theavail
,whatis
andpaths
sub-commandsalways
: a case insensitive match is applied to search contexts and also to the other module sub-commands and modulefile Tcl commands for the module specification they receive as argument.
It can help for instance to load a module without knowing the case used to name its relative modulefile:
$ module config icase always
$ module load -v mysoftware
Loading MySoftware/1.0
Insensitive case match activation can be controlled at configure time with the --with-icase
option, which could be passed any of the above activation levels. This option could be superseded with the MODULES_ICASE
environment variable, which could be set through the config
sub-command with the icase
option. Command-line switch --icase
supersedes in turns any other icase configurations. When this command-line switch is passed, icase
mode equals always
.
This new feature is available in git repository and will be included into the upcoming v4.4 release.