[systemd-devel] variable expansion in ExecStart

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sat Oct 4 12:24:47 PDT 2014


Hi,

Environment="X='Y' Z"
ExecStart=/bin/echo $X ${X}

results in echo[31266]: Y Z 'Y' Z

i.e., $X not only splits at whitespace, as documented, but also strips quotes.
Is this by design, or is it an implementation accident? Should this behaviour
be changed?

Zbyszek


More information about the systemd-devel mailing list