]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: fix first argument in Environment= expansion example
authorWang Yu <wangyu@uniontech.com>
Fri, 26 Jun 2026 04:07:12 +0000 (12:07 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 26 Jun 2026 09:11:59 +0000 (10:11 +0100)
The example states that the first /bin/echo invocation (using ${ONE})
receives the argument 'one' (with literal single quotes). However,
Environment=ONE='one' strips the syntactic single quotes during
unquoting — see systemd.syntax(7), "Quotes themselves are removed" —
so ONE holds the value one, and ${ONE} (exact-value substitution,
always a single argument) yields the argument one without quotes.

Fixes #42442

Signed-off-by: Wang Yu <wangyu@uniontech.com>
man/systemd.service.xml

index 965e57a817f1ee4b14523baaeef17e52709183e1..fc1545f47d93206be0a4283f7f4dfbe88f40aafd 100644 (file)
@@ -1618,7 +1618,7 @@ ExecStart=/bin/echo ${ONE} ${TWO} ${THREE}
 ExecStart=/bin/echo $ONE $TWO $THREE</programlisting>
     <para>This results in <filename>/bin/echo</filename> being
     called twice, the first time with arguments
-    <literal>'one'</literal>,
+    <literal>one</literal>,
     <literal>'two two' too</literal>, <literal></literal>,
     and the second time with arguments
     <literal>one</literal>, <literal>two two</literal>,