Subject: Re: which(1) is a csh script?
To: Jesper Louis Andersen <jlouis@mongers.org>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 10/07/2003 12:12:44
On Tue, Oct 07, 2003 at 12:50:27PM +0200, Jesper Louis Andersen wrote:
> Quoting David Laight (david@l8s.co.uk):
> 
> > For a Posix conformant 'sh' (which should include ksh and netbsd's sh)
> > 'command -v name' or 'comamnd -V name' should work.
> 
> 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).

	David

-- 
David Laight: david@l8s.co.uk