Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "command -v"
- X-seq: zsh-workers 17227
- From: Clint Adams <clint@xxxxxxx>
- To: Bruce Stephens <bruce+zsh@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: "command -v"
- Date: Sat, 25 May 2002 22:46:51 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <877klr6by0.fsf@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <877klr6by0.fsf@xxxxxxxxxxxxxxxxxxxx>
> 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 }
Messages sorted by:
Reverse Date,
Date,
Thread,
Author