diff options
author | Luca BRUNO <luca.bruno@coreos.com> | 2020-04-16 13:28:18 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-04-17 15:55:40 +0200 |
commit | 3db1c62d22b8659ad0cdbbae561e07f63abf0162 (patch) | |
tree | 8a61719e0843f48792d7335ae7759e52bf74cff3 /man/systemd.service.xml | |
parent | f3a604e4cf84f00a595aceca6c3e78fd03de652d (diff) | |
download | systemd-3db1c62d22b8659ad0cdbbae561e07f63abf0162.tar.gz |
man/systemd-service: clarify env variable expansion
This clarifies some more aspects of `${FOO}` expansions in service
units, mostly trying to answer my own doubts about what happens when
the matching variable is not defined.
Diffstat (limited to 'man/systemd.service.xml')
-rw-r--r-- | man/systemd.service.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 02eb706789..9f99feaef0 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -1106,10 +1106,10 @@ <para>Basic environment variable substitution is supported. Use <literal>${FOO}</literal> as part of a word, or as a word of its - own, on the command line, in which case it will be replaced by the - value of the environment variable including all whitespace it - contains, resulting in a single argument. Use - <literal>$FOO</literal> as a separate word on the command line, in + own, on the command line, in which case it will be erased and replaced + by the exact value of the environment variable (if any) including all + whitespace it contains, always resulting in exactly a single argument. + Use <literal>$FOO</literal> as a separate word on the command line, in which case it will be replaced by the value of the environment variable split at whitespace, resulting in zero or more arguments. For this type of expansion, quotes are respected when splitting |