Subject: Re: which(1) is a csh script?
To: None <>
From: James K. Lowden <>
List: tech-userlevel
Date: 10/07/2003 09:23:23
On Tue, 7 Oct 2003 12:12:44 +0100, David Laight <> wrote:
> On Tue, Oct 07, 2003 at 12:50:27PM +0200, Jesper Louis Andersen wrote:
> > I initially thought which where a standard of some kind, relying on
> > a C program. For compliance I will use ''command -v'' instead.
> Unfortunately you might have to implement it!
> I added the support to sh in netbsd last year, I don't know about
> open/freebsd, nor what bash does (but bash is badly non-conformant
> anyway).

Bash has it:

$ echo $0
$ type which
which is hashed (/usr/bin/which)
$ command -v which    
$ command -V which
which is hashed (/usr/bin/which)