Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (1) — Plan9 4th Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cleanname(2)

CLEANNAME(1)

NAME

cleanname − clean a path name

SYNOPSIS

­cleanname [ ­-d ­pwd ] ­names ... 

DESCRIPTION

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

­/sys/src/cmd/cleanname.c

SEE ALSO

cleanname(2).

Plan 9  —  December 11, 1999

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026