[systemd-devel] [PATCH] Documentation: Clarify env var handling

Lennart Poettering lennart at poettering.net
Mon Aug 1 16:33:30 PDT 2011


On Tue, 12.07.11 11:38, Barry Scott (barry.scott at onelan.co.uk) wrote:

>                                  starting with ; or # will be ignored,
>                                  which may be used for commenting. The
> +                                parser for will strip leading and
> +                                trailing whitespace from the values
> +                                of assignments, unless you use
> +                                double quotes (").
> +                                The

"The parser for"? Doesn't sound like correct english to me?

>                                  argument passed should be an absolute
>                                  file name, optionally prefixed with
>                                  "-", which indicates that if the file
> diff --git a/man/systemd.service.xml b/man/systemd.service.xml
> index 4f11020..7e3679d 100644
> --- a/man/systemd.service.xml
> +++ b/man/systemd.service.xml
> @@ -311,18 +311,19 @@
>                                  main process of the daemon. The
>                                  command line accepts % specifiers as
>                                  described in
> -                                <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>. On
> -                                top of that basic environment variable
> -                                substitution is supported, where
> -                                <literal>${FOO}</literal> is replaced
> -                                by the string value of the environment
> -                                variable of the same name. Also
> -                                <literal>$FOO</literal> may appear as
> -                                separate word on the command line in
> -                                which case the variable is replaced by
> -                                its value split at whitespaces. Note
> +                                <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
> +                                <para>On top of that basic environment variable
> +                                substitution is supported. Use <literal>${FOO}</literal>
> +                                as part of a word, or as word of its own on the
> +                                command line, in which case it will be replaced
> +                                by the value of the env var including all
> +                                whitespace it contains, resulting in 1 argument.
> +                                Use <literal>$FOO</literal> as a separate word
> +                                on the command line, in which case it will be
> +                                replaced by the value of the env var split up at
> +                                whitespace, resulting in 0 or more arguments. Note
>                                  that the first argument (i.e. the
> -                                binary to execute) may not be a
> +                                program to execute) may not be a
>                                  variable, and must be a literal and
>                                  absolute path name.</para></listitem>
>                          </varlistentry>

Otherwise looks fine. Could you prep a fixed patch for this against current
git? I will then merge it right-away.

Thanks,

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list