[systemd-bugs] [Bug 76744] core: bus_exec_context_set_transient_property: Environment transient file is totally broken in most cases
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Apr 5 22:39:14 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=76744
David Strauss <david at davidstrauss.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTABUG
--- Comment #4 from David Strauss <david at davidstrauss.net> ---
I'm not convinced this is a bug. systemd-run's --setenv option is documented to
correspond to setting Environment= in the transient unit file. This means it
uses the same syntax [1], too.
Given that you're trying to assign a value with spaces, I believe you want
this:
systemd-run --setenv '"a=b c"' true
Your suggestion would change the effect of multiple settings, which we support
in cases like this:
systemd-run --setenv 'a=b c=d' true
With strv_join(), it would be:
Environment=a=b c=d
With strv_join_quoted(), it would be:
Environment="a=b c=d"
So, strv_join_quoted() would result in, I think, $a being set to "b c=d".
If I'm wrong about breaking multiple environment settings, please re-open, and
I'll take another look.
[1]
http://www.freedesktop.org/software/systemd/man/systemd.exec.html#Environment=
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140406/4ac41294/attachment.html>
More information about the systemd-bugs
mailing list