You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining an environment variable with setenv in a modulefile, if this variable value is later in the modulefile appended (with append Tcl command), initial value set with setenv has disappeared.
To Reproduce
Steps to reproduce the behavior:
With the following mod modulefile:
$ cat mod#%Modulesetenv FOO foosetenv BAR $env(FOO)append env(BAR) bar
Load this modulefile then check value of BAR variable:
$ ml -v ./modLoading /path/to/mod
$ echo$BARbar
Expected behavior
Resulting BAR environment variable should equal to foobar not bar, as it is first initialized with foo value.
The text was updated successfully, but these errors were encountered:
Describe the bug
When defining an environment variable with
setenv
in a modulefile, if this variable value is later in the modulefile appended (withappend
Tcl command), initial value set withsetenv
has disappeared.To Reproduce
Steps to reproduce the behavior:
With the following
mod
modulefile:Load this modulefile then check value of
BAR
variable:Expected behavior
Resulting
BAR
environment variable should equal tofoobar
notbar
, as it is first initialized withfoo
value.The text was updated successfully, but these errors were encountered: