From owner-freebsd-current Thu Mar 2 19:35:45 2000 Delivered-To: freebsd-current@freebsd.org Received: from picnic.mat.net (picnic.mat.net [206.246.122.133]) by hub.freebsd.org (Postfix) with ESMTP id 8B4B337B5A6 for ; Thu, 2 Mar 2000 19:35:35 -0800 (PST) (envelope-from chuckr@picnic.mat.net) Received: from localhost (chuckr@localhost [127.0.0.1]) by picnic.mat.net (8.9.3/8.9.3) with ESMTP id WAA21932; Thu, 2 Mar 2000 22:35:05 -0500 (EST) (envelope-from chuckr@picnic.mat.net) Date: Thu, 2 Mar 2000 22:35:05 -0500 (EST) From: Chuck Robey To: Alfred Perlstein Cc: Dan Papasian , current@FreeBSD.ORG Subject: Re: which(1), rewritten in C? In-Reply-To: <20000302195937.F14279@fw.wintelcom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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