History log of /freebsd-10.0-release/usr.bin/which/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


227245 06-Nov-2011 ed

Mark global functions and/or variables in which(1) static where possible.

This allows compilers and static analyzers to more thorough analysis.


165169 13-Dec-2006 ru

Refine the previous revision.


165168 13-Dec-2006 ru

"which -s" will return 0 only if all executables were found, not "any".


141656 10-Feb-2005 ru

Require at least one argument.


140420 18-Jan-2005 ru

Sort sections.


99120 30-Jun-2002 tjr

Handle relative and absolute pathnames (anything with a `/' in it) in the same
way as execve(2), and the old perl which(1).

PR: 35718


99118 30-Jun-2002 tjr

Treat empty PATH elements as "." for tradition and consistency with the
old Perl which(1) script.

PR: 35719


98543 21-Jun-2002 ru

Give a C rewriter the necessary credit.

Requested by: Daniel Papasian <dpapasia@andrew.cmu.edu>


97565 30-May-2002 ru

which(1) was once a Perl script.


95124 20-Apr-2002 charnier

Use `The .Nm utility'


91945 09-Mar-2002 wosch

Off by one error in checking max file name length.


87678 11-Dec-2001 markm

Use FBSDID(), WARNS=2 fix.

Mkaefile does not use WARNS=2 beacuse this will be made default.


81588 13-Aug-2001 ru

Spell "FreeBSD" with "F" and "BSD" in uppercase.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


65227 29-Aug-2000 green

Get rid of the old version.


65226 29-Aug-2000 green

Use a C version of which(1).

Submitted by: Dan Papasian <bugg@bugg.strangled.net>
Reviewed by: jhb


55963 14-Jan-2000 sheldonh

Add a missing .El macro.


51275 14-Sep-1999 sheldonh

Correct some hard sentence breaks. Only those surrounding the previous
commit and those which cause ugly nroff output have been fixed, since
the purpose of the style guideline which they contravene is to reduce
the sizes of deltas.

Reported by: bde


51090 08-Sep-1999 sheldonh

Improve shell documentation:

* Consistently misspell built-in as builtin.

* Add a builtin(1) manpage and create builtin(1) MLINKS for all shell
builtin commands for which no standalone utility exists. These MLINKS
replace those that were created for csh(1).

* Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages,
as well as to the manpages of standalone utilities which are supported
as shell builtin commands in at least one of the shells. In such
manpages, explain that similar functionality may be provided as a
shell builtin command.

* Improve sh(1)'s description of the cd builtin command. Csh(1) already
describes it adequately. Replace the cd(1) manpage with a builtin(1)
MLINKS link.

* Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use
Ic instead of Xr for shell builtin commands.

* Undo English contractions.

Reviewed by: mpp, rgrimes


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


43805 09-Feb-1999 wosch

Added myself as maintainer.


36301 22-May-1998 jkoshy

Sort SEE ALSO section alphabetically.


36057 15-May-1998 jkoshy

Add cross references for find(1), locate(1), whereis(1) and which(1).

Submitted by: Josh Gillam <josh@quick.net>
PR: docs/6642


34801 23-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.


32994 01-Feb-1998 helbig

Search for proper executables, ignore directories


32188 02-Jan-1998 helbig

Don't ignore empty components of $PATH, i. e. colon at the beginning,
the end or two successive colons.

Reviewed and improved by wosch.


28790 26-Aug-1997 charnier

Cosmetic in usage string. Mdocify author section.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21673 14-Jan-1997 jkh

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.


19207 27-Oct-1996 wosch

fix perl indention style


17849 27-Aug-1996 wosch

sync copyright with /usr/share/examples/etc/bsd-style-copyright


17786 23-Aug-1996 mpp

Use the .Fx macro where appropriate.


17640 17-Aug-1996 wosch

replace shell comment char ``#'' with troff comment command ``.\"''


13123 30-Dec-1995 peter

This commit was generated by cvs2svn to compensate for changes in r13122,
which included commits to RCS files with non-trunk default branches.


9852 02-Aug-1995 asami

Submitted by: Wolfram Schneider <w@cs.tu-berlin.de>

The currently (1995/07/31 04:22:07) implemented if (-x "$prog") {
works only if you have '.' in your $PATH variable.


9809 31-Jul-1995 asami

Submitted by: Torbjorn Granlund <tege@matematik.su.se>

* /usr/bin/which doesn't work if a complete path is passed to it. This is
incompatible with other flavours of Unix, Here is a suggested patch:


9700 25-Jul-1995 bde

Change `install' to `${INSTALL}' as usual.

Remove the extra slash in ${DESTDIR}/${BINDIR}.


6049 30-Jan-1995 jkh

Unify the copyright notice.


6041 30-Jan-1995 asami

Cleanup.
Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>


5992 28-Jan-1995 asami

Add a `-s' flag for `silent' processing. Make the script return 0 for
success and 1 for failure. Describe the options in manpage.


5984 28-Jan-1995 jkh

Put in a much less bogus Makefile on advice from Bruce.


5944 26-Jan-1995 jkh

Use the better perl script version of which submitted by Wolfram.
Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>


5888 25-Jan-1995 jkh

This commit was generated by cvs2svn to compensate for changes in r5887,
which included commits to RCS files with non-trunk default branches.