Fix markup, add the EXIT STATUS section.

This commit is contained in:
Ruslan Ermilov 2006-12-26 13:44:41 +00:00
parent 3f7358b96b
commit ca3f81d885
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165554

View File

@ -56,7 +56,7 @@ input device is a terminal, the user is prompted (on the standard error
output) for confirmation.
.Pp
The options are as follows:
.Bl -tag -width Fl
.Bl -tag -width indent
.It Fl d
Attempt to remove directories as well as other types of files.
.It Fl f
@ -97,7 +97,9 @@ Specifying this flag for a read only file will cause
to generate an error message and exit.
The file will not be removed or overwritten.
.It Fl R
Attempt to remove the file hierarchy rooted in each file argument.
Attempt to remove the file hierarchy rooted in each
.Ar file
argument.
The
.Fl R
option implies the
@ -141,7 +143,7 @@ No options may be supplied in this simple mode of operation,
which performs an
.Xr unlink 2
operation on the passed argument.
.Pp
.Sh EXIT STATUS
The
.Nm
utility exits 0 if all of the named files or file hierarchies were removed,
@ -152,7 +154,7 @@ removed.
If an error occurs,
.Nm
exits with a value >0.
.Sh NOTE
.Sh NOTES
The
.Nm
command uses
@ -166,12 +168,15 @@ This will allow the removal of file names that begin
with a dash
.Pq Sq - .
For example:
.Dl rm -- -filename
.Pp
.Dl "rm -- -filename"
.Pp
The same behavior can be obtained by using an absolute or relative
path reference.
For example:
.Dl rm /home/user/-filename
.Dl rm ./-filename
.Pp
.Dl "rm /home/user/-filename"
.Dl "rm ./-filename"
.Pp
When
.Fl P