Re: which: command not found

Christopher Bock <[email protected]> Fri, 12 Dec 2025 23:33:14 +0100
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <[email protected]>
On Fri, 12 Dec 2025 17:12:55 -0500
"Mark J. Reed" <[email protected]> wrote:

> I guess a consistent cross-shell approach here would be to use `type`,
> check the return code, and extract the pathname from the end of the message
> on success.

what about `command -v foo`?