Re: [PATCH] configure: consistent command -v usage

Subject: Re: [PATCH] configure: consistent command -v usage

Date: Thu, 19 Feb 2015 19:17:41 +0100

To: Tomi Ollila, notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> writes:

> When the shell builtin `command -v` operates normally, it either
> prints the path of the arg given to it and returns zero -- or it
> returns nonzero and prints nothing.
> In abnormal situations something might be printed to stderr and
> in that case we want to know about it; therefore the used
> command -v stderr redirections to /dev/null have been removed.
>
> The `hash` (builtin) command in ksh returns zero even the arg
> given to is is not found in path. For that and for consistency
> the one appearance of it has been converted to `command -v`.
> ---
>
> marked trivial
>

and pushed

d

Thread: