[systemd-devel] shell / systemd config files

Colin Guthrie gmane at colin.guthr.ie
Tue May 21 02:11:07 PDT 2013


'Twas brillig, and James Buren at 20/05/13 18:28 did gyre and gimble:
> Files such as /etc/machine-info have an incompatibility with systemd in regards to how
> it writes and/or parses them. Take the following sample:
> 
> PRETTY_HOSTNAME="\'\"\$\`\\"
> 
> Systemd will translate this to: '"$`\
> However, the shells bash and dash will translate this to: \'"$`\
> 
> So, it appears to be that systemd is escaping single quotes when the shells themselves
> do not honor it for single quotes here. Thoughts for a solution? I ask because I have to
> write some systemd config files for a distro installer, and cannot use hostnamectl yet.

AFAIUI, it's not meant to be 100% shell compatible anyway, so I suspect
the currently behaviour is as intended and will remain.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the systemd-devel mailing list