Subject: Re: replacement for which(1)
To: None <>
From: Martin Husemann <>
List: tech-userlevel
Date: 03/21/2004 15:48:26
On Sun, Mar 21, 2004 at 03:24:14PM +0100, Peter Postma wrote:
> I've ported OpenBSD's which(1).  The which(1) in the NetBSD tree is still
> a csh script and this one is a C program.

This has been discussed to death already - please search the archives.

The summary:

 - the which in tree does exactly the right thing for {t,}csh users
 - no C program could do the above
 - all users of other shells should not use which(1), but their shells
   equivalent (for /bin/sh this is "type" for example)