Skip to content

Commit 6860bde

Browse files
committed
doc: no auto path resolution on {prepend,append,remove}-path
Fixes #597 Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent d04e890 commit 6860bde

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

NEWS.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ Modules 5.6.1 (not yet released)
2727
conflict with *MSVC x86 toolchain* ``ml.exe``. (fix issue #589)
2828
* Doc: add :ref:`maintainer-guide`.
2929
* Doc: website is now located at https://envmodules.io.
30+
* Doc: precise that no automatic path resolution is performed on
31+
:mfcmd:`prepend-path`, :mfcmd:`append-path` or :mfcmd:`remove-path`
32+
modulefile commands. (fix issue #597)
3033

3134
.. _Furo: https://github.com/pradyunsg/furo
3235

doc/source/modulefile.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,13 @@ the *modulefile* is being loaded.
11821182
If *value* corresponds to the concatenation of multiple elements separated by
11831183
colon, or *delimiter*, character, each element is treated separately.
11841184

1185+
The provided *value* is used as-is. If any path resolution is required, it
1186+
must be performed within the *modulefile* itself. Use caution when including
1187+
characters with special meanings in the shell context (such as ``~``), as the
1188+
shell may expand these paths automatically. This can prevent the
1189+
corresponding entries from being properly removed when the *modulefile* is
1190+
unloaded.
1191+
11851192
If the *variable* is :envvar:`MODULEPATH` and :mconfig:`require_via`
11861193
configuration option is activated, the *modulefile* is considered a
11871194
dependency by the loaded modulefiles stored in the added modulepaths.

0 commit comments

Comments
 (0)