diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-12-20 16:13:47 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-12-20 16:13:47 +0000 |
commit | 61c79b122e44f58607ac5f393bcf9b4a7a821178 (patch) | |
tree | ed04b5fbbf6e1897e6a52c236a7e251ae7ef66c5 /bin/rm/rm.1 | |
parent | fb59e40253fef0113a40fb946389c81e296d4068 (diff) | |
download | FreeBSD-src-61c79b122e44f58607ac5f393bcf9b4a7a821178.zip FreeBSD-src-61c79b122e44f58607ac5f393bcf9b4a7a821178.tar.gz |
Add link(1) and unlink(1) as special cases of ln(1) and rm(1)
respectively, in accordance with SUSv2.
This differs from the approach taken in NetBSD, but provides
less obscure error messages in at least the EISDIR case and
does not take up additional disk space for new binaries.
PR: 13071
PR: 13074
Requested by: James Howard <howardjp@wam.umd.edu>
Diffstat (limited to 'bin/rm/rm.1')
-rw-r--r-- | bin/rm/rm.1 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/bin/rm/rm.1 b/bin/rm/rm.1 index 0c4b740..a9b04af 100644 --- a/bin/rm/rm.1 +++ b/bin/rm/rm.1 @@ -39,12 +39,15 @@ .Dt RM 1 .Os .Sh NAME -.Nm rm +.Nm rm , +.Nm unlink .Nd remove directory entries .Sh SYNOPSIS .Nm rm .Op Fl dfiPRrvW .Ar file ... +.Nm unlink +.Ar file .Sh DESCRIPTION The .Nm @@ -116,6 +119,16 @@ It is an error to attempt to remove the files or .Dq .. . .Pp +When the utility is called as +.Nm unlink , +only one argument, +which must not be a directory, +may be supplied. +No options may be supplied in this simple mode of operation, +which simply performs an +.Xr unlink 2 +operation using the two passed arguments. +.Pp The .Nm utility exits 0 if all of the named files or file hierarchies were removed, @@ -198,3 +211,7 @@ A .Nm command appeared in .At v1 . +The simplified +.Nm unlink +command conforms to +.St -susv2 . |