Sheldon Hearn
d71e172ac6
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>
1999-12-20 16:13:47 +00:00
Michael Haro
0efa204039
brucify
...
Reviewed by: obrien
1999-11-28 09:34:21 +00:00
Bruce Evans
4a086b52ca
Fixed longstanding breakage of rm of deep directories in rev.1.2.
...
rm must not use FTS_NOCHDIR, since chdir'ing is required for removing
deep directory trees and the ability to remove such trees is required
by POSIX.2 and POLA. The breakage didn't make much difference until
recently, since fts(3) didn't work in deep directory trees. It isn't
clear whether using FTS_NOCHDIR ever fixed anything (Net/2's rm.c is
similar to Lite1's). Perhaps it was actually to limit the damage
caused by the fts bug.
1999-09-13 15:12:30 +00:00
Michael Haro
777d1f8281
brucify, v' before
W', mention -v is non-standard in manpage and
...
make code slightly easier to read
Reviewed by: obrien
1999-09-04 03:40:10 +00:00
Michael Haro
0b93733576
fix rm -r
...
Submitted by: John Hay -- John.Hay@mikom.csir.co.za
1999-08-29 19:57:03 +00:00
Michael Haro
bfbdd545e1
add verbose flag
...
exit(1) --> exit(EX_USAGE)
Reviewed by: obrien
1999-08-29 02:20:26 +00:00
Peter Wemm
2a4562393f
$Id$ -> $FreeBSD$
1999-08-27 23:15:48 +00:00
Kris Kennaway
f80db2b881
Use .Dq instead of ``'' in manpage
...
Use optimal blocksize for rm -P, instead of always using 8192-byte blocks
to overwrite the file.
Obtained from: OpenBSD
1999-05-28 12:47:31 +00:00
Jordan K. Hubbard
0e8f2d6c1a
Don't emit usage() message when no arguments given to -f. This
...
appears to be consistent with other Unixen, like Solaris.
PR: 10240
Submitted by: jun_sun@hlla.is.tsukuba.ac.jp
1999-02-25 22:18:08 +00:00
Garrett Wollman
bd98a81593
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).
1999-01-28 17:41:02 +00:00
Philippe Charnier
f43e9d2251
.Nm rm -> .Nm.
1998-05-18 06:37:35 +00:00
Steve Price
395f4bf0be
Remove remaining Lite1 stuff from the man page and uphold the
...
precedence in changing sccsid to rcsid as set by Phillippe
Charnier in his previous 100 or so commits.
pointed out by: Bruce Evans <bde@zeta.org.au>
1997-08-07 21:37:39 +00:00
Steve Price
41cc862cc2
Remove #if(n)def BSD_4_4_LITE cruft and change sccsid to rcsid.
1997-08-07 15:37:47 +00:00
Doug Rabson
e9dff5569a
Enable whiteout code since we now have the lite2 support for them.
1997-04-29 10:03:10 +00:00
Mike Pritchard
fa10160c65
Provide examples of how to remove file names that begin with
...
a dash in non-getopt implementations. E.g.:
rm /home/mpp/-filename
rm ./-filename
Requested by: bde
1997-04-09 05:04:43 +00:00
Mike Pritchard
fe83da2eec
Improve the wording in the NOTES section. Closes PR# 3223.
1997-04-08 20:27:48 +00:00
Warner Losh
93ef08af3e
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-28 15:24:41 +00:00
Peter Wemm
b97fa2ef50
Revert $FreeBSD$ to $Id$
1997-02-22 14:13:04 +00:00
Jordan K. Hubbard
1130b656e5
Make the long-awaited change from $Id$ to $FreeBSD$
...
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Steve Price
1f64b5c98e
Merge Lite2 mods, and -Wall cleaning. Unimplemented undelete(2)
...
cruft is protected by a #ifdef (BSD4_4_LITE) that should be
removed when this is supported by the kernel.
1996-12-14 06:11:53 +00:00
Wolfram Schneider
b8923d4cc0
[HISTORY] command appeared in Version 1 AT&T UNIX
...
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
1996-08-29 18:06:19 +00:00
Wolfram Schneider
b0205aff7f
fix usage string
...
respond `Y' is equal to `y'
Add a note how to delete file name with beginning `-'
1996-03-07 23:26:59 +00:00
Paul Traina
22471d5338
Don't initialize udata, fix usage string
1996-02-19 05:57:22 +00:00
Wolfram Schneider
d7e0e5ca0f
delete my last commit
...
Submitted by: pst, ache
1996-02-19 00:44:19 +00:00
Paul Traina
daf6f1eb4e
Remove unnecessary '?' case and don't zero global udata, it's already zero
1996-02-18 19:54:04 +00:00
Wolfram Schneider
f44290853f
update usage string
...
all flag variables initialized with zero
respond `Y' is equal to `y'
1996-02-18 19:00:59 +00:00
Andrey A. Chernov
6b4198130e
Allow root to delete uchg/uappnd files
1995-04-13 13:35:09 +00:00
David Greenman
89730b290a
Added $Id$
1994-09-24 02:59:15 +00:00
Bruce Evans
9fb420314e
Remove redundant declarations that were added in the previous commit.
1994-09-21 22:31:01 +00:00
Poul-Henning Kamp
67a3d3a8d3
Applied patch to make -Wall and -Dlint shut up.
...
Reviewed by: phk
Submitted by: Josef Grosch <joeg@gagme.wwa.com>
1994-09-20 07:18:04 +00:00
Andreas Schulz
a8c32ea5a1
Reviewed by:
...
Submitted by:
Added the FTS_NOCHDIR flag to the fts-open call. This is needed, so that
the fts don't change the current directory for rm and subsequent calls
to rmdir with relative pathnames don't fail.
Pulled over the bugfix in 1.1.5.
1994-08-28 18:34:50 +00:00
Rodney W. Grimes
4b88c807ea
BSD 4.4 Lite bin Sources
1994-05-26 06:18:55 +00:00