Commit 0ae9c92a authored by Frederic Crozat's avatar Frederic Crozat Committed by Zbigniew Jędrzejewski-Szmek
Browse files

man: systemd.exec - explicit Environment assignment

Hi all,

while working on another bug, I discovered the "strange" way systemd is
parsing Environment= in .service and thought it was worth documenting
(because I don't expect people to find this syntax by themselves unless
they read the parsing code ;)

Be more verbose about using space in Environment field and not
using value of other variables


[zj: expand and reformat the example a bit]
parent aa7cb209
......@@ -286,9 +286,24 @@
empty string is assigned to this
option the list of environment
variables is reset, all prior
assignments have no effect. See
assignments have no effect.
Variable expansion is not performed
inside the strings, and $ has no special
If you need to assign a value containing spaces
to a variable, use double quotes (")
for the assignment.</para>
<programlisting>Environment="VAR1=word1 word2" VAR2=word3 "VAR3=word 5 6"</programlisting>
gives three variables <literal>VAR1</literal>,
<literal>VAR2</literal>, <literal>VAR3</literal>.
for details.</para></listitem>
for details about environment variables.</para></listitem>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment