maux
Star on GitHub Buy me a coffee

Manual / realpath

realpath(1)

REALPATH(1) General Commands Manual REALPATH(1)

realpath - print the absolute, canonical pathname of each operand

realpath [ -E | -e ] file

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.

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.
Every component, including the last, must exist.

If both -E and -e are given, the last one given takes effect.

/usr/man/REALPATH this page

pwd(1), dirname(1), basename(1)

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.

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