summaryrefslogtreecommitdiff
path: root/doc/manual-src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-11-23 22:52:27 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-11-23 22:52:27 +0900
commit63f47cbbc5d9b8e1dae09b06a6d2eda4fb0f2297 (patch)
tree213148fb3ee6e77b0d383bf17e383aa19ba40312 /doc/manual-src
parent9214e7250148135675db18c3d697f095454170c3 (diff)
Document about ${HOME} expansion
Diffstat (limited to 'doc/manual-src')
-rw-r--r--doc/manual-src/en/aria2c.rst37
1 files changed, 37 insertions, 0 deletions
diff --git a/doc/manual-src/en/aria2c.rst b/doc/manual-src/en/aria2c.rst
index 37d01a9b..4ffea4c7 100644
--- a/doc/manual-src/en/aria2c.rst
+++ b/doc/manual-src/en/aria2c.rst
@@ -1958,6 +1958,43 @@ lines beginning ``#`` are treated as comments::
bits of the configuration file (e.g., ``chmod 600 aria2.conf``), so
that other user cannot see the contents of the file.
+The environment variables, such as ``${HOME}``, are expanded by shell.
+This means that those variables used in configuration file are not
+expanded. However, it is useful to ``${HOME}`` to refer user's home
+directory in configuration file to specify file paths. Therefore,
+aria2 expands ``${HOME}`` found in the following option values to
+user's home directory:
+
+* :option:`ca-certificate <--ca-certificate>`
+* :option:`certificate <--certificate>`
+* :option:`dht-file-path <--dht-file-path>`
+* :option:`dht-file-path6 <--dht-file-path6>`
+* :option:`dir <--dir>`
+* :option:`input-file <--input-file>`
+* :option:`load-cookies <--load-cookies>`
+* :option:`log <--log>`
+* :option:`metalink-file <--metalink-file>`
+* :option:`netrc-path <--netrc-path>`
+* :option:`on-bt-download-complete <--on-bt-download-complete>`
+* :option:`on-download-complete <--on-download-complete>`
+* :option:`on-download-error <--on-download-error>`
+* :option:`on-download-start <--on-download-start>`
+* :option:`on-download-stop <--on-download-stop>`
+* :option:`on-download-pause <--on-download-pause>`
+* :option:`out <--out>`
+* :option:`private-key <--private-key>`
+* :option:`rpc-certificate <--rpc-certificate>`
+* :option:`rpc-private-key <--rpc-private-key>`
+* :option:`save-cookies <--save-cookies>`
+* :option:`save-session <--save-session>`
+* :option:`server-stat-if <--server-stat-if>`
+* :option:`server-stat-of <--server-stat-of>`
+* :option:`torrent-file <--torrent-file>`
+
+Note that this expansion occurs even if the above options are used in
+the command-line. This means that expansion may occur 2 times: first,
+shell and then aria2c.
+
dht.dat
~~~~~~~~