[systemd-devel] Suggestting (maybe?)better name escape for .mount and .automount unit file

microcai microcai at fedoraproject.org
Tue Apr 12 07:46:58 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

于 2011年04月12日 22:44, Zbigniew Jędrzejewski-Szmek wrote:
> On 04/12/2011 04:33 PM, microcai wrote:
>> > Shell is evil as Lennart said.
>> > 
>> > Then I say, escaping non-ascii char is also evil.
>> > 
>> > mount point should use only printable and type-able name, aka, valid
>> > UTF-8 string.
>> > 
>> > Among them, / and - can be used, since unit file name can't contain /, /
>> > is escaped as -.
>> > What about - ? Lennart said, Oh, please use \xAB ...
>> > 
>> > That is not *elegant* and *obvious*.
>> > And \ is then also need to be escaped.
>> > 
>> > SO, please, escape '-' as '--' (double '-'),  no more further escaping.
> Hi,
> 
> this is something that I suggested before, but Lennart didn't like the idea.
> But I still think that '--' is so much better.
> 
> dev-disk-by\x2duuid-72c96b94\x2d9fe6\x2d4a85\x2d93b6\x2d7e8f7d0991fe.device: please no :)
> 
> Zbyszek

Yeah, unit file like this is totally nonsense.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQEcBAEBAgAGBQJNpGXfAAoJEKT4Uz7oTANZ6KMH/16QDdKCw/vurcuGlbwRGHHN
rK6EAN/xSQbEiLAFq6QDhx+PvSmdg/vS6xPJWF8XiPSfeNJGXLHiHefAxbAJLKbJ
wd3YgYwbmRdqTUOmGFYYYRN2XkJvA8VWztUb1Vzkjgbmlmy9dM9yJiBxM4BomIsQ
QoZdijwBFlpcatnVfZKqT48mTFuXOIM0e1aVf+yOeKG5ttcUyDTZeoJQY2TGoAv9
0dh4BJYtKe1xIFj1kWQGYv83B1Y660inE5PReU+pvBiL/IWJHvFt4lRWIBhT2qIC
TJh+OxZSD9ojeCskrYHbCqvasnfon1QeEt9JxaIFwVcMhzqelzmktMdkPiehENI=
=GIJF
-----END PGP SIGNATURE-----


More information about the systemd-devel mailing list