Subject: Re: /usr/bin/which is a csh script!!?!
To: NetBSD-current Discussion List <>
From: Andrew Brown <>
List: current-users
Date: 04/30/2003 09:27:14
afiact, basically what it comes down to is:

(1) everyone uses a shell (if you don't, you don't count)

(2) everyone wants to know where a given command is (if you don't, you
don't count)

(3) most shells have such a built in function (or functions) already

(4) if you've used your shell for any period of time, you've probably
found it, and it probably also handles aliases properly

(5) if you're not using a shell smart enough to figure where something
is by itself (or if it doesn't provide aliases), the implementation of
which(1) as a csh script is probably perfectly acceptable to you

imho, the real bug is shells that provide aliases but don't provide
something like which(1) as a builtin, which is the only really wrong
case (shells that provide aliases and will only tell you that
something is an alias aside).  which shells are the broken ones?

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."