Manual / realpath
realpath(1)
| REALPATH(1) | General Commands Manual | REALPATH(1) |
NAME
realpath - print the absolute, canonical pathname of each operand
SYNOPSIS
realpath [ -E | -e ] file
DESCRIPTION
For each file operand, realpath resolves it against the current directory if it is not already absolute, folds every . and .. component, collapses repeated slashes, and prints the result. ProDOS has no symbolic links, so none are ever resolved. A .. above a volume's own root has nowhere to go and is a no-op, leaving the path at the root.
A failure on one operand prints a diagnostic to standard error and continues with the next; the exit status reflects whether any operand failed.
- -E
- Do not treat it as an error if resolving the last component results in "no such file or directory" -- only the components before it need exist. This is the default.
- -e
- Every component, including the last, must exist.
If both -E and -e are given, the last one given takes effect.
FILES
/usr/man/REALPATH this page
SEE ALSO
DIAGNOSTICS
0 if every operand resolved (and, under -e, exists in full); 1 if any operand could not be resolved or does not satisfy -e/-E; 2 on a usage error.
BUGS
The canonical form is whatever case ProDOS itself stored the name in, the same as pwd(1) prints -- there is no case folding of its own. A pathname that folds to longer than 64 characters (ProDOS's own pathname limit) is refused rather than truncated.
| September 15, 2026 | maux |