Re: [systemd-devel] variable expansion in ExecStart

2014-10-07 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Oct 06, 2014 at 05:52:40PM +0200, Lennart Poettering wrote: > On Sat, 04.10.14 21:24, Zbigniew Jędrzejewski-Szmek (zbys...@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

Re: [systemd-devel] variable expansion in ExecStart

2014-10-06 Thread Lennart Poettering
On Sat, 04.10.14 21:24, Zbigniew Jędrzejewski-Szmek (zbys...@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

Re: [systemd-devel] variable expansion in ExecStart

2014-10-04 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Oct 05, 2014 at 02:30:42AM +0300, Uoti Urpala wrote: > On Sat, 2014-10-04 at 21:24 +0200, Zbigniew Jędrzejewski-Szmek wrote: > > 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, b

Re: [systemd-devel] variable expansion in ExecStart

2014-10-04 Thread Uoti Urpala
On Sat, 2014-10-04 at 21:24 +0200, Zbigniew Jędrzejewski-Szmek wrote: > 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 acci

[systemd-devel] variable expansion in ExecStart

2014-10-04 Thread Zbigniew Jędrzejewski-Szmek
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 __