NetBSD/bin/rm
jtc 1a6ccc3e14 Strip trailing slashes of operands in checkdot().
POSIX.2 requires that if "." or ".." are specified as the basename
portion of an operand, a diagnostic message be written to standard
error, etc.  We strip the slashes because POSIX.2 defines basename
as the final portion of a pathname after trailing slashes have been
removed.

This also makes rm "perform actions equivalent to" the POSIX.1
rmdir() and unlink() functions when removing directories and files,
even when they do not follow POSIX.1's pathname resolution semantics
(which require trailing slashes be ignored).
1994-11-02 16:17:14 +00:00
..
Makefile
rm.1
rm.c Strip trailing slashes of operands in checkdot(). 1994-11-02 16:17:14 +00:00