-
Notifications
You must be signed in to change notification settings - Fork 109
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
comment handling not working as in modules 3 #402
Comments
Could you provide the full content of the modulefile to reproduce the issue? |
This is just a minor incompatibility and should be mentioned as its probably just working by accident on v3
|
Same behavior is obtained with bare Tcl script: $ cat test.tcl
set var val #comment
$ tclsh test.tcl
wrong # args: should be "set varName ?newValue?"
while executing
"set var val #comment"
(file "test.tcl" line 1) The Tcl community recommends using Modules since version 4.0 evaluates full modulefile script as a Tcl script. Specific modulefile read and evaluation was performed previously (on Modules 3.2), which must explain why the error were not obtained on old version of Modules. |
Yeah, as said - not really a bug but a v3 feature :) |
Now I better understand why it is working on version 3.2: on this version the |
Describe the bug
Comments are not supported like they were in modules 3
To Reproduce
Steps to reproduce the behavior:
Have module with something like
setenv foo bar # comment
Expected behavior
No error
Error and debugging information
Additional context
Tested with modules 4.5.2 and 4.7.1
The text was updated successfully, but these errors were encountered: