Robert Elz wrote, on 25 Feb 2022:
>
>   | Does it have the same last-component-need-not-exist behaviour as the
>   | GNU coreutils default, or is it just a wrapper round realpath(3)?
> 
> Just a wrapper.   The substance of the thing is an 8 line loop, the
> rest (about 60 lines total, ie: another 50+, not counting the boilerplate
> copyright/licence comments at the start) is the standard stuff - blank lines,
> includes, declarations, the getopt() loop for the 1 option (-q) supported, and
> a usage() function.

Would you (or whoever maintains realpath for NetBSD) be willing to add
a -E option that makes your version behave like the coreutils default?
Then POSIX could specify it with -e and -E options, and say it is
unspecified which is the default.

The alternative would be to go back to the original plan of just adding
readlink (with the -f option for canonicalisation).

> The NetBSD version came from FreeBSD, so unless theirs has been updated
> recently, it will be the same.

The FreeBSD man page only shows a -q option, so it appears it is still
the same. https://www.freebsd.org/cgi/man.cgi?query=realpath&sektion=1

I assume that if NetBSD added -E, FreeBSD would have no problem with
picking up that change.

-- 
Geoff Clare <g.cl...@opengroup.org>
The Open Group, Apex Plaza, Forbury Road, Reading, RG1 1AX, England

  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
      • Re:... Robert Elz via austin-group-l at The Open Group
        • ... Geoff Clare via austin-group-l at The Open Group
        • ... Robert Elz via austin-group-l at The Open Group
          • ... Geoff Clare via austin-group-l at The Open Group
          • ... Robert Elz via austin-group-l at The Open Group
          • ... Robert Elz via austin-group-l at The Open Group
            • ... Geoff Clare via austin-group-l at The Open Group
              • ... Steffen Nurpmeso via austin-group-l at The Open Group
            • ... enh via austin-group-l at The Open Group
              • ... Steffen Nurpmeso via austin-group-l at The Open Group
            • ... Robert Elz via austin-group-l at The Open Group
              • ... enh via austin-group-l at The Open Group
                • ... Thorsten Glaser via austin-group-l at The Open Group
                • ... enh via austin-group-l at The Open Group

Reply via email to