* "command -v"
@ 2002-05-25 23:32 Bruce Stephens
2002-05-26 2:46 ` Clint Adams
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Stephens @ 2002-05-25 23:32 UTC (permalink / raw)
To: zsh-workers
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "command -v"
2002-05-25 23:32 "command -v" Bruce Stephens
@ 2002-05-26 2:46 ` Clint Adams
0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2002-05-26 2:46 UTC (permalink / raw)
To: Bruce Stephens; +Cc: zsh-workers
> 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 }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-26 2:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-25 23:32 "command -v" Bruce Stephens
2002-05-26 2:46 ` Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).