portable realpath

Antonio Sun antoniosun-N9AOi2cAC9ZBDgjK7y7TUQ at public.gmane.org
Tue Dec 13 05:34:16 UTC 2011


Hi,

Anyone knows a portable way to get realpath, ie, the canonical file name of
a symbolic link?

Both GNU Linux and NetBSD seem to support 'readlink -f', but the '-f' will
fail in FreeBSD, v8.2-RELEASE-p4 at least.

Any suggestions?

PS. 'readlink -f', will canonicalize by  following  every symlink in every
component of the given name recursively.

Thanks

Antonio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20111213/abedc37c/attachment.html>


More information about the Legacy mailing list