summaryrefslogtreecommitdiff
path: root/bin/rm
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2014-05-25 19:07:37 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2014-05-25 19:07:37 +0000
commit8ced76eaf63f4f34db511853de871bca29f379a3 (patch)
treeb0d1d83e481920ca06f60b043b3b497b1976d1ec /bin/rm
parent9046e61ca156c5cfb787d50f7291205b8e6e3acc (diff)
- it seems our notes that posix require rm to behave like rmdir for directories
is plain wrong: remove it. the note in posix spec is misleading, to be fair - most of the rest of notes in STANDARDS are really historical notes (admittedly caused by the standards i guess) so move them into HISTORY. debatable, yes, but leaves STANDARDS consistent. HISTORY is a hodge podge anyway, by neccesity. - while there, fix a sentence splice in BUGS sobrado agrees with the removal of the rmdir note; millert oks the diff
Diffstat (limited to 'bin/rm')
-rw-r--r--bin/rm/rm.130
1 files changed, 7 insertions, 23 deletions
diff --git a/bin/rm/rm.1 b/bin/rm/rm.1
index 0489ec9f47f..f69a597ca56 100644
--- a/bin/rm/rm.1
+++ b/bin/rm/rm.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rm.1,v 1.36 2012/09/05 06:21:18 jmc Exp $
+.\" $OpenBSD: rm.1,v 1.37 2014/05/25 19:07:36 jmc Exp $
.\" $NetBSD: rm.1,v 1.8 1995/07/25 19:37:30 jtc Exp $
.\"
.\" Copyright (c) 1990, 1993, 1994
@@ -33,7 +33,7 @@
.\"
.\" @(#)rm.1 8.5 (Berkeley) 12/5/94
.\"
-.Dd $Mdocdate: September 5 2012 $
+.Dd $Mdocdate: May 25 2014 $
.Dt RM 1
.Os
.Sh NAME
@@ -150,22 +150,11 @@ specification.
The flags
.Op Fl dP
are extensions to that specification.
-.Pp
-.St -p1003.1-2008
-requires
-.Nm
-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
+.Sh HISTORY
+An
.Nm
-with respect to directories.
+command appeared in
+.At v1 .
.Pp
The
.Nm
@@ -183,11 +172,6 @@ The interactive mode used to be a
.Nm dsw
command, a carryover from the ancient past with an
amusing etymology.
-.Sh HISTORY
-An
-.Nm
-command appeared in
-.At v1 .
.Sh BUGS
The
.Fl P
@@ -195,5 +179,5 @@ option assumes that both the underlying file system and storage medium write
in place.
This is true for the FFS and MS-DOS file systems and magnetic hard disks,
but not true for most flash storage.
-In addition, only regular files are overwritten, other types of files
+In addition, only regular files are overwritten; other types of files
are not.