summaryrefslogtreecommitdiffstats
path: root/usr.bin/whereis
Commit message (Collapse)AuthorAgeFilesLines
* Make the search for sources in PATH_PORTS more accurate. I onlyjoerg2008-06-201-2/+21
| | | | | | | | | | noticed that a "whereis -qs qemu" matched the distfiles subdir of qemu rather than /usr/ports/emulators/qemu. It now ignores all dot entries in /usr/ports, plus all entries starting with a capital letter (maintenance stuff like Templates, but also includes subdir CVS), plus /usr/ports/distfiles which is simply a magic name in that respect.
* Remove unused variables.stefanf2005-04-091-2/+1
|
* Fixed usage().ru2005-02-101-2/+3
|
* Let bsd.prog.mk set SRCS and MAN to their default values.ru2005-01-281-1/+0
|
* Respect locale settings from the environment.tjr2004-07-151-0/+3
|
* Mechanically kill hard sentence breaks.ru2004-07-021-6/+12
|
* Adjust max WARNs for sparc64.obrien2002-12-301-2/+1
|
* mdoc(7) police: markup polishing.ru2002-11-261-3/+3
| | | | Approved by: re
* Use correct document date for the -a option.johan2002-08-221-1/+1
|
* Add the -a option to report all matches instead of only thejohan2002-08-223-57/+145
| | | | | | first of each requested type. Approved by: joerg, sheldonh (mentor)
* Correctly handle empty path arguments, e.g., whereis -S -f biff.johan2002-08-181-7/+3
| | | | Approved by: joerg, sheldonh (mentor)
* Define all paths in pathnames.hjohan2002-07-252-2/+6
| | | | Approved by: joerg, sheldonh (mentor)
* Teach whereis(1) about games.johan2002-07-243-5/+9
| | | | Approved by: joerg, sheldonh (mentor)
* The .Nm utilitycharnier2002-07-141-1/+1
|
* Complete rewrite, once again.joerg2002-07-115-339/+720
| | | | | | | | | | | | | | | | | | | | | | | This is basically a ``C compilation'' of the former whereis.pl file, employing the same algorithms, and aiming at being mostly UI-compatible to the old (legally tainted) 4.3BSD whereis(1). In comparision, the 4.4BSD-Lite version is just another variant of which(1) only, where in particular the option to search for source directories is sorely missing. While i was at it, i added two more options which i contemplated doing long since. -x will suppress the run of locate(1) to find sources that could not be found otherwise, potentially saving a lot of time (but obviously, risking to not find some sources that are well hidden in the tree). -q will omit the leading name of the query, so in particular, you can now do something like: cd `whereis -qs ls` I'd explicitly like to thank johan for his review which was quite a bit more than an average review, including sending me a lot of diffs. Reviewed by: johan
* Restore copyright and RCSID.johan2002-07-041-6/+11
| | | | | | | Remove duplicate $FreeBSD$, $NetBSD$. Submitted by: mike Approved by: sheldonh (mentor)
* Switch to c versionjohan2002-07-031-1/+1
| | | | Approved by: sheldonh (mentor)
* compact synopsisjohan2002-07-032-3/+2
| | | | | | | s/program [program ...]/program .../ s/program [...]/program .../ Approved by: sheldonh (mentor)
* Remove -p flag.johan2002-07-032-33/+16
| | | | | | | | | OpenBSD's implementation lacks -p, and we don't want to support the option now, only to lose it if/when we later switch to OpenBSD's implementation. This functionality is provided by which(1). Approved by: sheldonh (mentor)
* Add __FBSDID.johan2002-07-031-7/+2
| | | | | | Remove __COPYRIGHT, __RCSID which caused an assembler warning. Approved by: sheldonh (mentor)
* Change to NetBSDs version of whereis.johan2002-07-032-86/+160
| | | | | Approved by: sheldonh (mentor) Obtained from: NetBSD
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* beforeinstall -> SCRIPTS.ru2001-04-071-4/+1
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+3
|
* Prepare for mdoc(7)NG.ru2000-12-191-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-3/+3
|
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-171-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Don't strip trailing .suffixes from filenames. Although obviouslyhoek1999-06-212-5/+6
| | | | | | | intentional, this behaviour is far too obnoxious given the number of filenames such as rpc.statd we have. Submitted by: Chris Costello [3]chris@calldei.com (bin/11303)
* Also look in /usr/src/contrib.obrien1998-10-041-3/+3
| | | | | PR: bin/7835 Submitted by: Stephen J. Roznowski <sjr@home.net>
* Sort cross references.wosch1998-08-311-2/+2
|
* Add cross references for find(1), locate(1), whereis(1) and which(1).jkoshy1998-05-151-1/+3
| | | | | Submitted by: Josh Gillam <josh@quick.net> PR: docs/6642
* Fix sysctl path /usr/sbin->/sbinache1997-12-221-2/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | 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.
* Fix a logico that sneaked into the manpath handling.joerg1996-12-231-3/+5
| | | | | | | Turn off error messages from locate(1), we can't do very much about its database not being ok anyway at this time. Closes PR # bin/2183: whereis returns environ...
* A totally revamped whereis(1), bringing back all the functionality ofjoerg1996-06-154-130/+332
| | | | | | | | the 4.3BSD command. Rewritten from scratch after the old man page, taking account for the different situation with man pages and source tree hierarchy (re: /usr/src/gnu) of the FreeBSD project. Reviewed by: wosch (actually loooong time ago)
* This commit was generated by cvs2svn to compensate for changes in r1590,rgrimes1994-05-272-0/+178
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-272-0/+178
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+5
OpenPOWER on IntegriCloud