JustBash.Commands.Realpath (JustBash v0.4.0)
View SourceThe realpath command - print the resolved absolute path.
Resolves ., .., and symlinks in the virtual filesystem.
How much of the path has to exist depends on the mode, as in GNU realpath:
- default — every component but the last must resolve to a directory,
so
realpath /nopecanonicalises and exits 0 whilerealpath /nope/deep/xdoes not -e— the whole path must exist-m— nothing has to exist