freebsd-dev/bin
bde 46543b887a Don't strip trailing slashes (for the initial rmdir). It breaks
following of the symlink for `rmdir symlink/' and is unnecessary
for ordinary directories (POSIX doesn't require rmdir(1) to do
anything for trailing slashes; it requires rmdir(2) to let them
"refer to a directory", and following the symlink for symlink/ is
what BSD does).  This also fixes bugs in the slash-stripping code
(for paths consisting entirely of slashes, the pointer into the
string was decremented to "before" the beginning of the string,
and the path was at best stripped to "".

The behaviour is unchanged except for the final directory for
`rmdir -p ...'.  There is no alternative to stripping intermediate
slashes since they must be specified.  The sloppy slash-stripping
code is adequate for intermediate directories, since the all-slashes
case fails early.
1997-12-19 20:20:22 +00:00
..
cat compare return value from getopt against -1 rather than EOF, per the final 1997-03-28 15:24:41 +00:00
chflags NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!". 1997-06-29 06:03:42 +00:00
chio spelling corrections. 1997-09-13 16:01:53 +00:00
chmod Reviewed by: hackers@freebsd.org in general 1997-11-13 00:28:51 +00:00
cp cp(1) is too silent if used with the option -i. It should 1997-10-03 18:11:14 +00:00
csh Remove simultaneous include of <sys/param.h> and <sys/types.h>. 1997-12-10 22:18:54 +00:00
date Put [+format] at the end of the usage message. 1997-12-11 02:38:56 +00:00
dd It's more portable to use <errno.h> than <sys/errno.h> 1997-12-15 20:37:43 +00:00
df Style police: keep a variable list in alphabetical order, and add 1997-10-13 09:36:05 +00:00
domainname Revert part of previous patch: Don't use __progname. 1997-06-04 06:21:44 +00:00
echo Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
ed Remove simultaneous include of <sys/param.h> and <sys/types.h>. 1997-12-10 22:18:54 +00:00
expr Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
hostname Revert part of previous patch: Don't use __progname. 1997-06-04 06:27:30 +00:00
kill Disallow empty arguments (eg: '') as process ids. 1997-08-21 21:34:43 +00:00
ln Try again to explain the existence of lchown() and the absence of 1997-06-19 01:07:05 +00:00
ls environmental -> environment. 1997-09-18 06:55:21 +00:00
mkdir Fix several problems with mkdir: 1997-04-01 23:46:22 +00:00
mv Merge from OpenBSD: 1997-12-10 17:52:49 +00:00
pax Make code slightly more robust towards change by calculating size 1997-12-12 18:38:22 +00:00
ps Document the new -f flag. 1997-12-05 07:35:31 +00:00
pwd compare return value from getopt against -1 rather than EOF, per the final 1997-03-28 15:24:41 +00:00
rcp Add -P option to cp(1) for local to local copying. 1997-12-08 21:02:36 +00:00
rm Remove remaining Lite1 stuff from the man page and uphold the 1997-08-07 21:37:39 +00:00
rmail Revert 1.15 - duplicate code (initialization). 1997-12-15 20:34:52 +00:00
rmdir Don't strip trailing slashes (for the initial rmdir). It breaks 1997-12-19 20:20:22 +00:00
sh Remove simultaneous include of <sys/param.h> and <sys/types.h>. 1997-12-10 22:18:54 +00:00
sleep Describe signals behaviour now 1997-08-12 21:20:12 +00:00
stty Merge from OpenBSD: 1997-12-12 18:11:29 +00:00
sync Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
test Remove simultaneous include of <sys/param.h> and <sys/types.h>. 1997-12-10 22:18:54 +00:00
Makefile Move procctl to the Attic, it's been copied to usr.sbin/procctl as 1997-12-07 02:26:23 +00:00
Makefile.inc Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00