Hi Xavier,
I see, thanks for the explanation. Maybe it could also be helpful to
flag those TCL commands in
https://modules.readthedocs.io/en/latest/modulefile.html#modules-specific-tcl-commands
that can (or those that cannot) be used in ~/.modulerc? The
documentation currently just says "a subset of the modulefile Tcl
commands", which is somehow unspecific :-)
However: Is there a "Module" way to set configuration variables like
"icase" per-user and controlled by users or is the recommended way to
directly set the respective environment variables like $MODULES_ICASE in
~/.bash_profile & Co.?
Cheers, Frank
On 09.04.22 18:35, Xavier Delaruelle wrote:
> Hi Frank,
>
> ~/.modulerc is made to set parameters for modulefiles, not to configure
> the module command. I have added a note in documentation to clarify that
> point [1].
>
> ~/.modulerc is evaluated each time a module command is executed, module
> config is intended to be run just once, mainly when the module command
> is initialized. This is why the config sub-command cannot be used in
> ~/.modulerc.
>
> Cheers,
> Xavier
>
> [1] https://modules.readthedocs.io/en/latest/INSTALL.html#configuration
> <https://modules.readthedocs.io/en/latest/INSTALL.html#configuration>
>
>
>
> Le ven. 8 avr. 2022 à 13:30, Frank Thommen <f.t...@dk...
> <mailto:f.t...@dk...>> a écrit :
>
>
> Hi,
>
> this time I tried to set "config icase never" in ~/.modulerc (empty and
> comment lines eliminiated):
>
> #%Module
> module config icase never
>
> but
>
> $ module list
> Module ERROR: module: Command 'config' not supported
> while executing
> "module config icase never"
> (file "/home/thommen/.modulerc" line 14)
> Please contact <root@localhost>
> No Modulefiles Currently Loaded.
> $
>
> https://modules.readthedocs.io/en/latest/module.html#subcmd-config
> <https://modules.readthedocs.io/en/latest/module.html#subcmd-config>
> doesn't mention, that it cannot be used in modulerc. What am I
> doing wrong?
>
> Modules version is 5.0.1
>
> Cheers, Frank
>
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> <mailto:Mod...@li...>
> https://lists.sourceforge.net/lists/listinfo/modules-interest
> <https://lists.sourceforge.net/lists/listinfo/modules-interest>
>
>
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
|