Bug 82240 - In the service file, the environment variable begin from single quote is parsed incorrectly
Summary: In the service file, the environment variable begin from single quote is pars...
Status: RESOLVED WORKSFORME
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 09:28 UTC by Wei-Ting Kuo
Modified: 2015-01-06 07:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Wei-Ting Kuo 2014-08-06 09:28:53 UTC
My original post in serverfault:

http://serverfault.com/questions/618286/how-can-i-set-the-environment-value-which-is-begin-from-a-single-quote-in-system

I'd like to set a environment value as
'{"a"=1}'

I've tried followings:

Environment=SETTINGS=\'{"a"=1}\'
Environment=SETTINGS='{"a"=1}'

But I still get the {"a"=1} as the value but not '{"a"=1}'. It seems that the parser runs twice.
Comment 1 Zbigniew Jedrzejewski-Szmek 2015-01-06 07:19:44 UTC
As documented in the linked serverfault question, everything seems to work.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.