Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: which: command not found
- X-seq: zsh-users 30404
- From: Christopher Bock <christopher@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: which: command not found
- Date: Fri, 12 Dec 2025 23:33:14 +0100
- Archived-at: <https://zsh.org/users/30404>
- In-reply-to: <CAA=-s3z6DMCV1ScX7JXfogExG8iO4ak2tOqTZyh-OjeGe5M6xQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAA=-s3xJ5iSmG1LESO_GGzAheJ3r7unYeOinYKJCMKquLWgP0Q@mail.gmail.com> <CAH+w=7YVTZap=TMwQMM699=cDEtFsG=g-J8uJh=XSbebz8DJSA@mail.gmail.com> <CAA=-s3z6DMCV1ScX7JXfogExG8iO4ak2tOqTZyh-OjeGe5M6xQ@mail.gmail.com>
On Fri, 12 Dec 2025 17:12:55 -0500
"Mark J. Reed" <markjreed@xxxxxxxxx> 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`?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author