File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed
Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ Modules 5.5.0 (not yet released)
4141 :mfcmd: `depends-on `, :mfcmd: `prereq `, :mfcmd: `prereq-all ` and
4242 :mfcmd: `prereq-any ` modulefile commands. When this option is set, required
4343 module should be located in a path listed in the specified list or in an
44- enabled modulepath matching one path of the list.
44+ enabled modulepath matching one path of the list. This information is
45+ recorded in loaded environment in :envvar: `__MODULES_LMPREREQPATH ` variable.
4546* Add :mfcmd: `lsb-release ` modulefile command to get certain Linux Standard
4647 Base (LSB) information. It accepts to following sub-commands: ``id ``,
4748 ``codename `` and ``release ``.
Original file line number Diff line number Diff line change @@ -994,7 +994,8 @@ The following environment variables appeared on Modules 5.
994994+------------+-----------------------------------------------------------------+
995995| 5.5 | :envvar: `MODULES_HIDE_AUTO_LOADED `, :envvar: `MODULES_LOGGER `, |
996996| | :envvar: `MODULES_LOGGED_EVENTS `, |
997- | | :envvar: `MODULES_CONFLICT_UNLOAD ` |
997+ | | :envvar: `MODULES_CONFLICT_UNLOAD `, |
998+ | | :envvar: `__MODULES_LMPREREQPATH ` |
998999+------------+-----------------------------------------------------------------+
9991000
10001001Modules Specific Tcl Commands
Original file line number Diff line number Diff line change @@ -3835,6 +3835,26 @@ ENVIRONMENT
38353835 .. versionchanged :: 5.0
38363836 Variable renamed from ``MODULES_LMPREREQ `` to ``__MODULES_LMPREREQ ``
38373837
3838+ .. envvar :: __MODULES_LMPREREQPATH
3839+
3840+ A colon separated list of the :mfcmd: `prereq ` statements set with a specific
3841+ ``--modulepath `` option defined by all loaded *modulefiles *. Each element in
3842+ this list starts by the name of the loaded *modulefile * declaring the
3843+ pre-requirement followed by the name of all modulefiles it declares a
3844+ :mfcmd: `prereq ` with and their specific modulepath. These loaded modulefiles,
3845+ pre-required modulefile names and specific modulepaths set are separated by
3846+ the ampersand character. When a :mfcmd: `prereq ` statement is composed of
3847+ multiple modulefiles or multiple specific modulepaths, these names are
3848+ separated by the pipe character.
3849+
3850+ This environment variable is intended for :command: `module ` command internal
3851+ use to get knowledge of the pre-requirement declared by the loaded
3852+ *modulefiles * in order to keep environment consistent.
3853+
3854+ .. only :: html
3855+
3856+ .. versionadded :: 5.5
3857+
38383858.. envvar :: __MODULES_LMREFRESH
38393859
38403860 A colon separated list of the loaded modules that are qualified for refresh
You can’t perform that action at this time.
0 commit comments