summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1999-01-28 17:41:02 +0000
committerwollman <wollman@FreeBSD.org>1999-01-28 17:41:02 +0000
commit0f1371bcfb9c4ca67ee34db87fe9e85083405274 (patch)
treeb984d253496cde657767384ac410d404283ece5c
parentca558df378372b5884ff8069ed7ca0828d9b8de1 (diff)
downloadFreeBSD-src-0f1371bcfb9c4ca67ee34db87fe9e85083405274.zip
FreeBSD-src-0f1371bcfb9c4ca67ee34db87fe9e85083405274.tar.gz
Fix synopsis to match 1003.2. Add text describing the way in which
our implementation does not meet 1003.2 (rather than the now outdated ``is expected to comply' language).
-rw-r--r--bin/rm/rm.129
1 files changed, 19 insertions, 10 deletions
diff --git a/bin/rm/rm.1 b/bin/rm/rm.1
index 8724c92..7ef2995 100644
--- a/bin/rm/rm.1
+++ b/bin/rm/rm.1
@@ -33,9 +33,9 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)rm.1 8.5 (Berkeley) 12/5/94
-.\" $Id: rm.1,v 1.11 1997/08/07 21:37:38 steve Exp $
+.\" $Id: rm.1,v 1.12 1998/05/18 06:37:35 charnier Exp $
.\"
-.Dd December 5, 1994
+.Dd January 28, 1999
.Dt RM 1
.Os
.Sh NAME
@@ -43,8 +43,7 @@
.Nd remove directory entries
.Sh SYNOPSIS
.Nm rm
-.Op Fl f | Fl i
-.Op Fl dPRrW
+.Op Fl dfiPRrW
.Ar file ...
.Sh DESCRIPTION
The
@@ -56,7 +55,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 flag
+.Bl -tag -width Fl
.It Fl d
Attempt to remove directories as well as other types of files.
.It Fl f
@@ -140,9 +139,6 @@ The same behavior can be obtained by using an absolute or relative
path reference. For example:
.Dl rm /home/user/-filename
.Dl rm ./-filename
-This is useful for commands that do not use
-.Xr getopt 3
-to parse the command line arguments.
.Sh SEE ALSO
.Xr rmdir 1 ,
.Xr undelete 2 ,
@@ -173,9 +169,22 @@ not the standard error output.
.Sh STANDARDS
The
.Nm
-command is expected to be
+command is almost
.St -p1003.2
-compatible.
+compatible, except that
+.Tn POSIX
+requires
+.Nm rm
+to act like
+.Xr rmdir 1
+when the
+.Ar file
+specified is a directory. This implementation requires the
+.Fl d
+option if such behavior is desired. This follows the historical
+behavior of
+.Nm
+with respect to directories.
.Sh HISTORY
A
.Nm
OpenPOWER on IntegriCloud