[systemd-devel] systemd environment variable handling and spaces bug?
Barry Scott
barry.scott at onelan.co.uk
Mon Jul 11 08:49:53 PDT 2011
I would like to take advantage of ${var} in the ExecStart lines.
However I find that there is a issue with handling of while space.
If I code this
ExecStart=/myservice --arg ${optional_arg}
If option_arg is not defined argv is ['/myservice', '--arg', '']
Is it a bug that you do not strip trailing whitespace after substituion?
If I code this
ExecStart=/myservice --arg${optional_arg}
and define
option_arg= --debug
argv is ['/myservice', '--arg--debug']
Is it a bug that the whitespace after = was stripped?
Barry
More information about the systemd-devel
mailing list