Zbigniew Jędrzejewski-Szmek 62fe94
From fb7661a6020b5680d5647d3d85b0501a4f3a5042 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 62fe94
From: Michael Marineau <michael.marineau@coreos.com>
Zbigniew Jędrzejewski-Szmek 62fe94
Date: Mon, 15 Sep 2014 14:07:39 -0700
Zbigniew Jędrzejewski-Szmek 62fe94
Subject: [PATCH] man: use the escape for "-" in example instead of space.
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
This sentence can be misread to mean that "\x20" is the escape code for
Zbigniew Jędrzejewski-Szmek 62fe94
"-" which is the only character explicitly mentioned. This lead to at
Zbigniew Jędrzejewski-Szmek 62fe94
least one user loosing hair over why a mount unit for "/foo/bar-baz"
Zbigniew Jędrzejewski-Szmek 62fe94
didn't work. The example escape is arbitrary so lets prevent hair loss.
Zbigniew Jędrzejewski-Szmek 62fe94
---
Zbigniew Jędrzejewski-Szmek 62fe94
 man/systemd.unit.xml | 2 +-
Zbigniew Jędrzejewski-Szmek 62fe94
 1 file changed, 1 insertion(+), 1 deletion(-)
Zbigniew Jędrzejewski-Szmek 62fe94
Zbigniew Jędrzejewski-Szmek 62fe94
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
Zbigniew Jędrzejewski-Szmek 62fe94
index 6ea552e8b4..67d46eda98 100644
Zbigniew Jędrzejewski-Szmek 62fe94
--- a/man/systemd.unit.xml
Zbigniew Jędrzejewski-Szmek 62fe94
+++ b/man/systemd.unit.xml
Zbigniew Jędrzejewski-Szmek 62fe94
@@ -226,7 +226,7 @@
Zbigniew Jędrzejewski-Szmek 62fe94
                 result is usable as part of a filename. Basically,
Zbigniew Jędrzejewski-Szmek 62fe94
                 given a path, "/" is replaced by "-", and all
Zbigniew Jędrzejewski-Szmek 62fe94
                 unprintable characters and the "-" are replaced by
Zbigniew Jędrzejewski-Szmek 62fe94
-                C-style "\x20" escapes. The root directory "/" is
Zbigniew Jędrzejewski-Szmek 62fe94
+                C-style "\x2d" escapes. The root directory "/" is
Zbigniew Jędrzejewski-Szmek 62fe94
                 encoded as single dash, while otherwise the initial
Zbigniew Jędrzejewski-Szmek 62fe94
                 and ending "/" is removed from all paths during
Zbigniew Jędrzejewski-Szmek 62fe94
                 transformation. This escaping is reversible.</para>