NetBSD/usr.bin/whereis
apb 4de4994446 Fix a bug in which which(1) would check only the first element of the
path for all args except the first.  So "which cp vi" found /bin/cp
using the first entry in the path, but failed to find /usr/bin/vi
using the second entry in the path, although "whereis cp vi" worked.
Restoring the ":" was done in the wrong place.

Also fix a bug in which an arg beginning with "/" would cause all
subsequent args to be ignored.  A "break" should have been "continue".
Add comments to all break and continue statements saying what they are
intended to do.

Also add braces around the body of a for loop which contained only one
multi-line statement.
2008-10-17 10:53:26 +00:00
..
Makefile Resurrect which(1), blessed by core. 2004-04-01 21:41:37 +00:00
whereis.1 Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
whereis.c Fix a bug in which which(1) would check only the first element of the 2008-10-17 10:53:26 +00:00
which.1 Resurrect which(1), blessed by core. 2004-04-01 21:41:37 +00:00