Skip to content

Commit

Permalink
update docs on purge() module function
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Dec 13, 2024
1 parent 96e65d9 commit 4df58d8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.new
Original file line number Diff line number Diff line change
Expand Up @@ -195,5 +195,5 @@ Lmod 8.7+
* Removed MRC:__marged_hiddenT, MRC:__marged_forbiddenT and MRC:__mergedAlias2modT
* Issue #731: Support for env. var. LMOD_SHOW_HIDDEN
* Issue #739: Make tcl files have "spider" as mode matching when Lmod is in spider mode.
(8.7.55) * Patch #737: A better test for spaces in front of #
(8.7.55) * Patch #737: A better test for spaces in front of # for admin.list

5 changes: 5 additions & 0 deletions docs/source/050_lua_modulefiles.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ unset during unloading.
of the modules. When unloading all modules are marked to be
unloaded.

**purge** ():
This command will unload all (non-sticky) modules except the
current one.


**try_load** ("pkgA", "pkgB", "pkgC"):
load all modules. No errors reported if unable to load. Any other
errors will be reported.
Expand Down
2 changes: 2 additions & 0 deletions rt/purge/mf/Core/X/1.0.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
purge()
setenv("X","X")
4 changes: 4 additions & 0 deletions rt/purge/purge.tdesc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ testdescript = {
runLmod show tclpurge #15
runLmod load tclpurge #16
runLmod list #17
runLmod load PrgEnv openmpi #18
runLmod load X #19
runLmod list #20
Expand Down

0 comments on commit 4df58d8

Please sign in to comment.