[Bug 15466] New: 'realpath -- /tmp' non-compliant with upcoming POSIX

bugzilla at busybox.net bugzilla at busybox.net
Tue Mar 21 17:06:05 UTC 2023


https://bugs.busybox.net/show_bug.cgi?id=15466

            Bug ID: 15466
           Summary: 'realpath -- /tmp' non-compliant with upcoming POSIX
           Product: Busybox
           Version: 1.35.x
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
          Assignee: unassigned at busybox.net
          Reporter: eblake at redhat.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

POSIX will be standardizing realpath in Issue 8:
https://www.austingroupbugs.net/view.php?id=1457

As such, the standard requirements that all utilities not explicitly excluded
(basically, echo is one of the few explicit exceptions) MUST accept -- as
end-of-options, even when the standard does not require any standardized
options.  Once Issue 8 is out,

realpath /tmp
realpath -- /tmp

must have identical behavior.  Busybox 1.35 (I tested the pre-built version
available on Fedora 37) fails this:

$ busybox realpath -- /tmp
realpath: --: No such file or directory
/tmp

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list