[systemd-devel] [PATCH] man: use the escape for "-" in example instead of space.

David Herrmann dh.herrmann at gmail.com
Thu Sep 18 06:39:12 PDT 2014


Hi

On Mon, Sep 15, 2014 at 11:07 PM, Michael Marineau
<michael.marineau at coreos.com> wrote:
> This sentence can be misread to mean that "\x20" is the escape code for
> "-" which is the only character explicitly mentioned. This lead to at
> least one user loosing hair over why a mount unit for "/foo/bar-baz"
> didn't work. The example escape is arbitrary so lets prevent hair loss.

Applied.

Thanks
David

> ---
>  man/systemd.unit.xml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
> index 6ea552e..67d46ed 100644
> --- a/man/systemd.unit.xml
> +++ b/man/systemd.unit.xml
> @@ -226,7 +226,7 @@
>                  result is usable as part of a filename. Basically,
>                  given a path, "/" is replaced by "-", and all
>                  unprintable characters and the "-" are replaced by
> -                C-style "\x20" escapes. The root directory "/" is
> +                C-style "\x2d" escapes. The root directory "/" is
>                  encoded as single dash, while otherwise the initial
>                  and ending "/" is removed from all paths during
>                  transformation. This escaping is reversible.</para>
> --
> 1.8.5.5
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list