carta
plan9-cleanname(1)

plan9-cleanname1

Clean a path name

Usage

cleanname [-d pwd] names ...

Overview

For each file name argument, cleanname, by lexical processing only, prints the shortest equivalent string that names the same (possibly hypothetical) file. It eliminates multiple and trailing slashes, and it lexically interprets . and .. directory components in the name. If the -d option is present, unrooted names are prefixed with pwd/ before processing.

Source

/src/cmd/cleanname.c

From 9base 1:6-5 in Debian 7 (Wheezy). Parsed by carta from the page's man source.