From e61a0705db40a5d44909796680041ebb36f7f21e Mon Sep 17 00:00:00 2001 From: Wang Yu Date: Fri, 26 Jun 2026 12:07:12 +0800 Subject: [PATCH] man: fix first argument in Environment= expansion example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- man/systemd.service.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 965e57a817..fc1545f47d 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -1618,7 +1618,7 @@ ExecStart=/bin/echo ${ONE} ${TWO} ${THREE} ExecStart=/bin/echo $ONE $TWO $THREE This results in /bin/echo being called twice, the first time with arguments - 'one', + one, 'two two' too, , and the second time with arguments one, two two,