Re: [hackers] Add realpath utility
Dimitris Papastamos <sin_AT_2f30.org> writes:
> Thanks for the patch. Can you demonstrate what realpath(1) adds
> that sbase readlink(1) can't provide?
readlink just provides the name a symlink points to. It doesn't resolve
any symlinks in either the symlink's directory path, the directory path
of the target, or if the symlink itself points to another symlink.
realpath works on any file, collapses .. and . references, resolves any
symlinks in any path component, and provides as its final answer an
absolute path containing no symlinks.
Received on Mon Nov 16 2015 - 18:19:40 CET
This archive was generated by hypermail 2.3.0
: Mon Nov 16 2015 - 18:48:11 CET