From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14072 invoked from network); 26 May 2002 02:47:08 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 May 2002 02:47:08 -0000 Received: (qmail 29415 invoked by alias); 26 May 2002 02:47:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17227 Received: (qmail 29404 invoked from network); 26 May 2002 02:46:59 -0000 Date: Sat, 25 May 2002 22:46:51 -0400 From: Clint Adams To: Bruce Stephens Cc: zsh-workers@sunsite.dk Subject: Re: "command -v" Message-ID: <20020526024651.GA22855@dman.com> References: <877klr6by0.fsf@cenderis.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877klr6by0.fsf@cenderis.demon.co.uk> User-Agent: Mutt/1.3.28i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) > There's a discussion on debian-devel about a bunch of packages using > "command -v" in their scripts, which all debian POSIX shells support, > with the exception of zsh. ("command -v" isn't in POSIX, apparently, > but it's in other standards.) > > Anyway, probably zsh ought to support it, whatever it does. This might do in a pinch: command() { case "$1" in -v) shift; whence "$@" ;; *) builtin command "$@";; esac }