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
Copy file name to clipboardExpand all lines: doc/source/module.rst
+29-26Lines changed: 29 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1373,8 +1373,8 @@ Module Sub-Commands
1373
1373
.. mconfig:: path_entry_reorder
1374
1374
1375
1375
Change order of entry in a path-like environment variable, when
1376
-
:mfcmd:`prepend-path`, :mfcmd:`append-path` or :subcmd:`use` target
1377
-
a path entry that is already defined in the environment variable.
1376
+
:mfcmd:`prepend-path`, :mfcmd:`append-path` or :subcmd:`use` target a path
1377
+
entry that is already defined in the environment variable.
1378
1378
1379
1379
Default value is ``0``. It can be changed at installation time with the
1380
1380
:instopt:`--enable-path-entry-reorder` option. The
@@ -1383,7 +1383,7 @@ Module Sub-Commands
1383
1383
its default value. See :envvar:`MODULES_PATH_ENTRY_REORDER` description
1384
1384
for details.
1385
1385
1386
-
.. only:: html
1386
+
.. only:: html or latex
1387
1387
1388
1388
.. versionadded:: 5.7
1389
1389
@@ -5293,30 +5293,33 @@ ENVIRONMENT
5293
5293
5294
5294
.. envvar:: MODULES_PATH_ENTRY_REORDER
5295
5295
5296
-
This environment variable changes the behavior of :mfcmd:`prepend-path`, :mfcmd:`append-path` and :subcmd:`use`.
5296
+
This environment variable changes the behavior of :mfcmd:`prepend-path`,
5297
+
:mfcmd:`append-path` and :mfcmd:`module use<module>` modulefile commands and
5298
+
sub-commands.
5297
5299
5298
-
If set to ``1``, and one of these commands targets a path entry that already exists in the environment variable, the entry is moved to the beginning or end (depending on the command), unless duplicates are allowed. This is the default behavior in Lmod.
5299
-
If set to ``0``, the environment variable is not modified when the entry already exists.
0 commit comments