-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #665: Added getenv function for TCL modules
- Loading branch information
Showing
6 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
step 1 | ||
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version | ||
=========================== | ||
Modules based on Lua: Version 8.7.20 2023-03-16 11:43 -05:00 | ||
Modules based on Lua: Version 8.7.30 2023-07-21 17:13 -05:00 | ||
by Robert McLay [email protected] | ||
=========================== | ||
step 2 | ||
|
@@ -33,7 +33,8 @@ step 6 | |
lua ProjectDIR/src/lmod.in.lua shell --regression_testing avail | ||
=========================== | ||
ProjectDIR/rt/tclmodules/mf | ||
a/1.0 earlyLateOutput/2.0 (L) hide/1.0 hide/2.0 (D) showMe/1.0 | ||
a/1.0 getenv/1.0 hide/2.0 (D) | ||
earlyLateOutput/2.0 (L) hide/1.0 showMe/1.0 | ||
Where: | ||
D: Default Module | ||
L: Module is loaded | ||
|
@@ -42,3 +43,8 @@ If the avail list is too long consider trying: | |
"module overview" or "ml ov" to display the number of modules for each name. | ||
Use "module spider" to find all possible modules and extensions. | ||
Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys". | ||
=========================== | ||
step 7 | ||
lua ProjectDIR/src/lmod.in.lua shell --regression_testing load getenv | ||
=========================== | ||
FOUND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#%Module | ||
|
||
if { {BAR} eq [getenv FOO] } { | ||
puts stderr "FOUND" | ||
} else { | ||
puts stderr "NOT FOUND" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters