]> git.notmuchmail.org Git - notmuch/commit
configure: consistent command -v usage
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 18 Feb 2015 14:54:01 +0000 (16:54 +0200)
committerDavid Bremner <david@tethera.net>
Thu, 19 Feb 2015 18:14:29 +0000 (19:14 +0100)
commit91ef2ae52421c3e20a903109bfca3d87d7c2e61d
tree23266913b3f175e7f824b3463fa07cb39ef1f06f
parent1722ea2c95865cb20cc2578894eca2cdaddc1d7a
configure: consistent command -v usage

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`.
configure