groff 1.23.0 added .MR to its -man macro package. The NEWS file states
that the inclusion of the macro "was prompted by its introduction to
Plan 9 from User Space's troff in August 2020." From d32deab it seems
that the name for Plan 9 from User Space's implementation was suggested
by groff maintainer G. Brandon Robinson.
Not sure if the intention was to make these definitions compatible, but
it would be nice if they were.
Currently, Plan 9 from User Space's .MR expects its second argument to
be parenthesized. groff's .MR does not. This results in extra
parentheses appearing in manual references when viewing Plan 9 from User
Space's manual pages on a system using groff.
44 lines
712 B
Groff
44 lines
712 B
Groff
.TH MKDIR 1
|
|
.SH NAME
|
|
mkdir \- make a directory
|
|
.SH SYNOPSIS
|
|
.B mkdir
|
|
[
|
|
.B -p
|
|
] [
|
|
.B -m
|
|
. I mode
|
|
]
|
|
.I dirname ...
|
|
.SH DESCRIPTION
|
|
.I Mkdir
|
|
creates the specified directories.
|
|
It
|
|
requires write permission in the parent directory.
|
|
.PP
|
|
If the
|
|
.B -p
|
|
flag is given,
|
|
.I mkdir
|
|
creates any necessary parent directories
|
|
and does not complain if the target directory already exists.
|
|
.PP
|
|
The
|
|
.B -m
|
|
flag sets the permissions to be used when creating the directory.
|
|
The default is 0777.
|
|
.SH "SEE ALSO"
|
|
.MR rm 1
|
|
.br
|
|
.IR cd
|
|
in
|
|
.MR rc 1
|
|
.SH SOURCE
|
|
.B \*9/src/cmd/mkdir.c
|
|
.SH DIAGNOSTICS
|
|
.I Mkdir
|
|
returns null exit status if all directories were successfully made.
|
|
Otherwise it prints a diagnostic and returns
|
|
.B \&"error"
|
|
status.
|