[systemd-devel] variable expansion in ExecStart

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue Oct 7 06:29:32 PDT 2014


On Mon, Oct 06, 2014 at 05:52:40PM +0200, Lennart Poettering wrote:
> 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...
By design or not, it is documented now.

Zbyszek


More information about the systemd-devel mailing list