summaryrefslogtreecommitdiffstats
path: root/man/environment.d.xml
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-11 20:05:10 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-21 05:30:50 +0100
commitccad1fd07ce4eb40a2fcf81cfb55d9b41fdcac48 (patch)
tree41b72c7747d8072e212ed58fd8b5c1e71c18d0b7 /man/environment.d.xml
parentbasic/env-util: use _cleanup_ in replace_env() (diff)
downloadsystemd-ccad1fd07ce4eb40a2fcf81cfb55d9b41fdcac48.tar.xz
systemd-ccad1fd07ce4eb40a2fcf81cfb55d9b41fdcac48.zip
Allow braceless variables to be expanded
(Only in environment.d files.) We have only basic compatibility with shell syntax, but specifying variables without using braces is probably more common, and I think a lot of people would be surprised if this didn't work.
Diffstat (limited to 'man/environment.d.xml')
-rw-r--r--man/environment.d.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/man/environment.d.xml b/man/environment.d.xml
index 4f3e03825a..2302992fa5 100644
--- a/man/environment.d.xml
+++ b/man/environment.d.xml
@@ -78,7 +78,7 @@
<literal><replaceable>KEY</replaceable>=<replaceable>VALUE</replaceable></literal> environment
variable assignments, separated by newlines. The right hand side of these assignments may
reference previously defined environment variables, using the <literal>${OTHER_KEY}</literal>
- format. No other elements of shell syntax are supported.
+ and <literal>$OTHER_KEY</literal> format. No other elements of shell syntax are supported.
</para>
<refsect2>
@@ -91,7 +91,7 @@
</para>
<programlisting>
FOO_DEBUG=force-software-gl,log-verbose
- PATH=/opt/foo/bin:${PATH}
+ PATH=/opt/foo/bin:$PATH
LD_LIBRARY_PATH=/opt/foo/lib
XDG_DATA_DIRS=/opt/foo/share:${XDG_DATA_DIRS}
</programlisting>