mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
977b25a76a
The overloading of IR emits magic \X'...' sequences that turn into HTML manual links. But not all such IR invocations should be manual links; those had to be written to avoid the IR macro before. Worse, the \X'...' ending the IR causes troff to emit only a single space after a period. Defining a new IM macro for manual references fixes both problems. Fixes #441.
32 lines
580 B
Groff
32 lines
580 B
Groff
.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 \*9/src/cmd/cleanname.c
|
|
.SH SEE ALSO
|
|
.IM cleanname (3) .
|