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
+23-14Lines changed: 23 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1376,14 +1376,7 @@ Module Sub-Commands
1376
1376
:mfcmd:`prepend-path`, :mfcmd:`append-path` or :subcmd:`use` target
1377
1377
a path entry that is already defined in the environment variable.
1378
1378
1379
-
The default behavior of :mfcmd:`prepend-path`, :mfcmd:`append-path` and
1380
-
:subcmd:`use` is not to update the value if a path-like environment
1381
-
variable, if they target a path entry that is already defined in the
1382
-
environment variable. If this config option is set to 1, an existing
1383
-
path entry is moved to the beginning respective end unless duplicates
1384
-
are allowed. This is the default behavior of Lmod.
1385
-
1386
-
Default value is 0. It can be changed at installation time with
1379
+
Default value is 0. It can be changed at installation time with the
1387
1380
:instopt:`--with-path-entry-reorder` option. The
1388
1381
:envvar:`MODULES_PATH_ENTRY_REORDER` environment variable is defined by
1389
1382
:subcmd:`config` sub-command when changing this configuration option from
@@ -5293,12 +5286,28 @@ ENVIRONMENT
5293
5286
5294
5287
.. envvar:: MODULES_PATH_ENTRY_REORDER
5295
5288
5296
-
The default behavior of :mfcmd:`prepend-path`, :mfcmd:`append-path` and
5297
-
:subcmd:`use` is not to update the value if a path-like environment
5298
-
variable, if they target a path entry that is already defined in the
5299
-
environment variable. If this config option is set to 1, an existing
5300
-
path entry is moved to the beginning respective end unless duplicates
5301
-
are allowed. This is the default behavior of Lmod.
5289
+
This environment variable changes the behavior of :mfcmd:`prepend-path`, :mfcmd:`append-path` and :subcmd:`use`.
5290
+
5291
+
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.
5292
+
If set to 0, the environment variable is not modified when the entry already exists.
0 commit comments