Bug 546480
Summary: | ls -l symlink characters are dangerous during copy-paste | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Greg Swift <gregswift> |
Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | jim, kdudka, meyering, ovasik, twaugh |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-12-11 07:26:29 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Greg Swift
2009-12-10 23:50:18 UTC
Thanks for report and detailed description of situation, I see your point. I would say notabug as well - as this format is required by POSIX... relevant section of ls specification about -l option: "If the file is a symbolic link, this information shall be about the link itself and the <pathname> field shall be of the form: "%s -> %s", <pathname of link>, <contents of link>" See http://www.opengroup.org/onlinepubs/000095399/utilities/ls.html for full POSIX specification. Don't know if there is much to do. Knowledge Base article is maybe the easiest solution... Proposing the change to upstream will collide with POSIX. So maybe request for the format adjusting in next POSIX version could be other solution - the harder one - as this format is well established. Closing this bugzilla NOTABUG, but adding upstream maintainer into CC - to let him know about the issue. Thanks for the heads up. You're right. The only hope for change is to go through POSIX, and that would be a very long shot, since there are sure to be scripts that parse ls -l output and that hence expect the " -> ". POSIX would never invalidate all of those scripts. You might get POSIX to bless a change whereby in any non-C locale, another byte sequence may be used in place of " -> ". That would protect the common case (users at the command line usually have LANG != C) yet allow scripted use (LC_ALL=C) to continue to have the required behavior. thanks for the feedback. How would one go about proposing a change to POSIX? its a long shot, but doesn't hurt to ask. First, subscribe to one or more of the groups here: http://www.opengroup.org/austin/lists.html austin-group-l austin-group-futures-l You might want to lurk for a while, or read archives. Then ask if it such a change would be possible. |