Blob
1 .TH CLEANNAME 12 .SH NAME3 cleanname \- clean a path name4 .SH SYNOPSIS5 .B cleanname6 [7 .B -d8 .I pwd9 ]10 .I names ...11 .SH DESCRIPTION12 For each file name argument,13 .IR cleanname ,14 by lexical processing only,15 prints the shortest equivalent string that names the same16 (possibly hypothetical) file.17 It eliminates multiple and trailing slashes, and it lexically18 interprets19 .B .20 and21 .B ..22 directory components in the name.23 If the24 .B -d25 option is present,26 unrooted names are prefixed with27 .IB pwd /28 before processing.29 .SH SOURCE30 .B \*9/src/cmd/cleanname.c31 .SH SEE ALSO32 .IR cleanname (3).