aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2016-09-28 16:40:19 +0200
committerSiri Hansen <[email protected]>2016-09-28 16:57:59 +0200
commit714570912d678c10f4aa4b6a6692d958e0fc7fe7 (patch)
treede2d7c9bb558355224e58714d8ce82c49447c411 /erts/doc
parentdabc6644991a6e732dc4404433215d1333a0ea07 (diff)
downloadotp-714570912d678c10f4aa4b6a6692d958e0fc7fe7.tar.gz
otp-714570912d678c10f4aa4b6a6692d958e0fc7fe7.tar.bz2
otp-714570912d678c10f4aa4b6a6692d958e0fc7fe7.zip
Document the order of directories added with code:add_pathsa/1
code:add_pathsa/1 reverts the list of directories when adding it at the beginning of the code path. The command line option '-pa' behaves in the same way. This is now documented.
Diffstat (limited to 'erts/doc')
-rw-r--r--erts/doc/src/erl.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/erts/doc/src/erl.xml b/erts/doc/src/erl.xml
index f62d3fb170..eb1d24cf12 100644
--- a/erts/doc/src/erl.xml
+++ b/erts/doc/src/erl.xml
@@ -393,9 +393,11 @@
<tag><c><![CDATA[-pa Dir1 Dir2 ...]]></c></tag>
<item>
<p>Adds the specified directories to the beginning of the code
- path, similar to <c><![CDATA[code:add_pathsa/1]]></c>; see
- <seealso marker="kernel:code"><c>code(3)</c></seealso>.
- As an alternative to <c>-pa</c>, if several directories are
+ path, similar to <seealso marker="kernel:code#add_pathsa/1">
+ <c><![CDATA[code:add_pathsa/1]]></c></seealso>. Note that the
+ order of the given directories will be reversed in the
+ resulting path.</p>
+ <p>As an alternative to <c>-pa</c>, if several directories are
to be prepended to the code path and the directories have a
common parent directory, that parent directory can be
specified in environment variable <c>ERL_LIBS</c>; see