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
set _modules_home [getenv MODULESHOME]
source${_modules_home}/common
Leads to error when displaying modulefile:
$ module display mod-------------------------------------------------------------------/path/to/mod:Module ERROR: couldn't read file "$MODULESHOME/common": no such file or directory while executing "source "${_modules_home}/common" (file "/path/to/mod" line 8) Please contact <root@localhost>-------------------------------------------------------------------
On display mode, getenv returns the variable name which leads to such error as the value is expected to fully resolve string value.
The text was updated successfully, but these errors were encountered:
To fix this issue, a --return-value option should be added to the getenv modulefile command to indicate that the value should be returned even on display evaluation mode.
Some use case of the
getenv
modulefile command:Leads to error when displaying modulefile:
On display mode,
getenv
returns the variable name which leads to such error as the value is expected to fully resolve string value.The text was updated successfully, but these errors were encountered: