-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log module command #396
Comments
Many thanks for your bug report. The handling of internal states of modulecmd have been reworked on recent versions and the Instead of |
Hello Xavier, Thanks for the fix, it works. Do you have a quick way to perhaps only log module commands only when the first argument is "load"? I suppose I could nest an if statement, but perhaps you have already thought of it? Also, is the example directory available anywhere for download? Thanks, RD |
As you say, a nested if on the
Match is made with
Example from all cookbook recipes can be found in the repository at https://github.com/cea-hpc/modules/tree/master/doc/example |
Describe the bug
I have installed modules version 4.7.1 on a CentOS 7 box and I have added the siteconfig.tcl file the example shown in https://modules.readthedocs.io/en/latest/cookbook/log-module-commands.html however upon starting a new shell I now get:
To Reproduce
Steps to reproduce the behavior:
content of /MODULES/4.7.1/etc/siteconfig.tcl:
If I remove the lines:
the error disappears.
Any idea on what is going on?
Also, are the example in the cookbook available on github? I don't seem to have the example directory.
Thanks,
RD
Modules version and configuration
Additional context
The text was updated successfully, but these errors were encountered: