Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/man/1/cleanname

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TH CLEANNAME 1
.SH NAME
cleanname \- clean a path name
.SH SYNOPSIS
.B cleanname
[
.B -d 
.I pwd
]
.I names ...
.SH DESCRIPTION
For each file name argument, 
.IR 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
.B .
and
.B ..
directory components in the name.
If the 
.B -d
option is present,
unrooted names are prefixed with
.IB pwd /
before processing.
.SH SOURCE
.B /sys/src/cmd/cleanname.c
.SH SEE ALSO
.IR cleanname (2).

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].