diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-23 15:47:33 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-23 15:49:03 +0200 |
commit | 0dc9fd56a53ef833fdc5b9b81bc958e7c3dd41a4 (patch) | |
tree | 1f41c34d362d2a60cc047e76af7a0f643efa41ae /man/systemd.exec.xml | |
parent | Revert "basic/env-util: (mostly) follow POSIX for what variable names are all... (diff) | |
download | systemd-0dc9fd56a53ef833fdc5b9b81bc958e7c3dd41a4.tar.xz systemd-0dc9fd56a53ef833fdc5b9b81bc958e7c3dd41a4.zip |
man: document what variables are allowed
Diffstat (limited to '')
-rw-r--r-- | man/systemd.exec.xml | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml index 9da919c379..454dd66199 100644 --- a/man/systemd.exec.xml +++ b/man/systemd.exec.xml @@ -2186,13 +2186,18 @@ SystemCallErrorNumber=EPERM</programlisting> <varlistentry> <term><varname>Environment=</varname></term> - <listitem><para>Sets environment variables for executed processes. Takes a space-separated list of variable - assignments. This option may be specified more than once, in which case all listed variables will be set. If - the same variable is set twice, the later setting will override the earlier setting. If the empty string is - assigned to this option, the list of environment variables is reset, all prior assignments have no - effect. Variable expansion is not performed inside the strings, however, specifier expansion is possible. The $ - character has no special meaning. If you need to assign a value containing spaces or the equals sign to a - variable, use double quotes (") for the assignment.</para> + <listitem><para>Sets environment variables for executed processes. Takes a space-separated list of + variable assignments. This option may be specified more than once, in which case all listed variables + will be set. If the same variable is set twice, the later setting will override the earlier + setting. If the empty string is assigned to this option, the list of environment variables is reset, + all prior assignments have no effect. Variable expansion is not performed inside the strings, + however, specifier expansion is possible. The <literal>$</literal> character has no special + meaning. If you need to assign a value containing spaces or the equals sign to a variable, use double + quotes (") for the assignment.</para> + + <para>The names of the variables can contain ASCII letters, digits, and the underscore + character. Variable names cannot be empty or start with a digit. In variable values, most characters + are allowed, but non-printable characters are currently rejected.</para> <para>Example: <programlisting>Environment="VAR1=word1 word2" VAR2=word3 "VAR3=$word 5 6"</programlisting> |