From owner-freebsd-current Thu Mar 2 19:40:52 2000 Delivered-To: freebsd-current@freebsd.org Received: from fb00.eng00.mindspring.net (fb00.eng00.mindspring.net [207.69.200.31]) by hub.freebsd.org (Postfix) with ESMTP id D160537B5AA for ; Thu, 2 Mar 2000 19:40:48 -0800 (PST) (envelope-from stuyman@confusion.net) Received: from confusion.net (user-2iveab4.dialup.mindspring.com [165.247.41.100]) by fb00.eng00.mindspring.net (8.9.3/8.8.5) with ESMTP id WAA14042; Thu, 2 Mar 2000 22:40:14 -0500 (EST) Message-ID: <38BF334F.2F10D4B0@confusion.net> Date: Thu, 02 Mar 2000 22:36:47 -0500 From: Laurence Berland Organization: B.R.A.T.T. X-Mailer: Mozilla 4.5 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 To: Chuck Robey Cc: Alfred Perlstein , Dan Papasian , current@FreeBSD.ORG Subject: Re: which(1), rewritten in C? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Which is also a perl script, which sh uses (since it's not a builtin there). It does the same thing as the which that's built in to bash and tcsh and csh Chuck Robey wrote: > > On Thu, 2 Mar 2000, Alfred Perlstein wrote: > > > * Dan Papasian [000302 18:17] wrote: > > > While this may sound crazy, I was tired of 'which' taking a long > > > time to complete on my 486 dx4/100 when it was under extereme > > > pressure, so I rewrote it in C :) > > > > > > > ...snip > > > > > NOTE: > > > This version of which has exactly the same behavior. > > > Also, the above test was not performed when the box was > > > under load.. and on slower machines/under load, the > > > differences are of course, more noticable. > > > You may all go ahead and call me crazy now. > > > > > > ...I've got the fear of posting the source, but what the heck, > > > getting nitpicked is good education :) > > > > > > http://bugg.strangled.net/which.c > > > > > > Any flames^Wthoughts? > > > > It doesn't seem to handle multiple arguments. File a PR and fix > > the issues and I'll look at getting it into post 4.0. > > Hey Alfred, what Perl program is he talking about? Which is a builtin for > csh and tcsh (my shells). Or is he talking about some other 'which'? > > > > > -Alfred > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-current" in the body of the message > > > > ---------------------------------------------------------------------------- > Chuck Robey | Interests include C & Java programming, FreeBSD, > chuckr@picnic.mat.net | electronics, communications, and signal processing. > > New Year's Resolution: I will not sphroxify gullible people into looking up > fictitious words in the dictionary. > ---------------------------------------------------------------------------- > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- Laurence Berland, Stuyvesant HS Debate <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> Windows 98: n. useless extension to a minor patch release for 32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit operating system originally coded for a 4-bit microprocessor, written by a 2-bit company that can't stand for 1 bit of competition. http://stuy.debate.net icq #7434346 aol imer E1101 The above email Copyright (C) 2000 Laurence Berland All rights reserved To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message