From owner-cvs-all Thu Jul 11 14:22:17 2002 Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 838E337B400; Thu, 11 Jul 2002 14:22:12 -0700 (PDT) Date: Thu, 11 Jul 2002 14:22:12 -0700 From: Juli Mallett To: Joerg Wunsch Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/whereis Makefile pathnames.h whereis.1 whereis.c whereis.pl Message-ID: <20020711142212.A24938@FreeBSD.ORG> References: <200207112120.g6BLKtED015671@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200207112120.g6BLKtED015671@freefall.freebsd.org>; from joerg@FreeBSD.org on Thu, Jul 11, 2002 at 02:20:54PM -0700 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , X-Affiliated-Projects: FreeBSD, xMach, ircd-hybrid-7 X-Towel: Yes X-LiveJournal: flata X-Negacore: Yes X-Warning: If you make me read stupid email, don't be surprised if I respond. If you don't want me to reply to something, don't send it to me. Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * De: Joerg Wunsch [ Data: 2002-07-11 ] [ Subjecte: cvs commit: src/usr.bin/whereis Makefile pathnames.h whereis.1 whereis.c whereis.pl ] > joerg 2002/07/11 14:20:54 PDT > > Modified files: > usr.bin/whereis Makefile whereis.1 whereis.c > Added files: > usr.bin/whereis pathnames.h > Removed files: > usr.bin/whereis whereis.pl > Log: > Complete rewrite, once again. > > 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 You should feel free to use 4.3BSD code with the Caldera license. See projects/sccs/sccscmds/ for examples of files using said license. Just an aside. > 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 > > Revision Changes Path > 1.6 +2 -0 src/usr.bin/whereis/Makefile > 1.1 +50 -0 src/usr.bin/whereis/pathnames.h (new) > 1.16 +119 -12 src/usr.bin/whereis/whereis.1 > 1.8 +555 -91 src/usr.bin/whereis/whereis.c > 1.9 +0 -242 src/usr.bin/whereis/whereis.pl (dead) -- Juli Mallett | FreeBSD: The Power To Serve Will break world for fulltime employment. | finger jmallett@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message