Dimitris Papastamos <[email protected]> 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.


Reply via email to