Bug 82240

Summary: In the service file, the environment variable begin from single quote is parsed incorrectly
Product: systemd Reporter: Wei-Ting Kuo <waitingkuo0527>
Component: generalAssignee: systemd-bugs
Status: RESOLVED WORKSFORME QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.