]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: document the details of continuations and comments 10651/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Nov 2018 08:36:52 +0000 (09:36 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 8 Nov 2018 09:09:04 +0000 (18:09 +0900)
man/systemd.syntax.xml

index 3c67e92dd58a1a76b9b89cd685672272f9c5e16c..67cd640eeaccb91e9b10fa7ed7e973732fd9c4af 100644 (file)
@@ -73,7 +73,8 @@
     backslash is replaced by a space character. This may be used to wrap long lines. The limit on
     line length is very large (currently 1 MB), but it is recommended to avoid such long lines and
     use multiple directives, variable substitution, or other mechanism as appropriate for the given
-    file type.</para>
+    file type. When a comment line or lines follow a line ending with a backslash, the comment block
+    is ignored, so the continued line is concatenated with whatever follows the comment block.</para>
 
     <example><programlisting>[Section A]
 KeyOne=value 1
@@ -85,6 +86,12 @@ KeyTwo=value 2
 Setting="something" "some thing" "…"
 KeyTwo=value 2 \
        value 2 continued
+
+[Section C]
+KeyThree=value 2\
+# this line is ignored
+; this line is ignored too
+       value 2 continued
 </programlisting></example>
 
     <para>Boolean arguments used in configuration files can be written in