[systemd-devel] variable expansion in ExecStart

Lennart Poettering lennart at poettering.net
Mon Oct 6 08:52:40 PDT 2014


On Sat, 04.10.14 21:24, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:

> 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?

Well, I wouldn't claim it was by design, but I think it actually
*does* make some sense the way it is. Might need documentation though...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list