Bug 29915 - converting - to \x1d breaks copy-and-pastability
Summary: converting - to \x1d breaks copy-and-pastability
Status: RESOLVED WONTFIX
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Lennart Poettering
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 16:16 UTC by Zbigniew Jedrzejewski-Szmek
Modified: 2010-10-05 14:38 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Zbigniew Jedrzejewski-Szmek 2010-08-31 16:16:39 UTC
Note: this is not an implementation bug, the implementation matches the specification. It's just the specification which seems suboptimal.

As specified in the system.unit man page... units with '-' in their name are converted to names with \xd1. To use this name this must be enclosed in single quotes or escaped as \\xd1. It would be much better to escape dashes as double dashes, like LVM does.

So sys-devices-virtio\x1dpci-virtio1-block-vda-vda1.device
would become sys-devices-virtio--pci-virtio1-block-vda-vda1.device...
This is reversible too, because '//' cannot occur in a path.
Comment 1 Lennart Poettering 2010-10-05 14:38:07 UTC
Hmm, we actually follow the way udev escapes its device names in the file system. I think it is a good idea to follow an existing escaping scheme instead of inventing our own.


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.