]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: clarify quoting of `$` in command lines (#39494)
authorChristoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Fri, 31 Oct 2025 06:28:57 +0000 (07:28 +0100)
committerGitHub <noreply@github.com>
Fri, 31 Oct 2025 06:28:57 +0000 (15:28 +0900)
When the special executable prefix `:` is used, `$$` yield the literal `$$`.

man/systemd.service.xml

index 125acae4d37a44baca24ad24c0753a8a7a887bc1..84dd17920a120cf4b5049d94223886e2bf1e01bb 100644 (file)
@@ -1485,7 +1485,8 @@ ExecStart=/bin/echo $ONE $TWO $THREE</programlisting>
     <literal>too</literal>.
     </para>
 
-    <para>To pass a literal dollar sign, use <literal>$$</literal>.
+    <para>Unless for commands with the special executable prefix <literal>:</literal>,
+    to pass a literal dollar sign, use <literal>$$</literal>.
     Variables whose value is not known at expansion time are treated
     as empty strings. Note that the first argument (i.e. the program
     to execute) may not be a variable.</para>