Date: Thu, 24 Feb 2022 15:57:08 +0000
From: "Geoff Clare via austin-group-l at The Open Group"
<[email protected]>
Message-ID: <20220224155708.GA912@localhost>
| 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.
The NetBSD version came from FreeBSD, so unless theirs has been updated
recently, it will be the same.
You can see the NetBSD one at:
http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/realpath/
kre
ps: we don't have the absurd -L option either of course, but we don't
to cd -L either, that whole "logical path" thing is garbage that has
long past its use-by date.