--- /dev/null
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id C0428429E35\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Feb 2015 07:06:57 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+ tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 1tYZbIaWkffW for <notmuch@notmuchmail.org>;\r
+ Wed, 18 Feb 2015 07:06:52 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id F000C429E32\r
+ for <notmuch@notmuchmail.org>; Wed, 18 Feb 2015 07:06:51 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 78CD910009D; Wed, 18 Feb 2015 16:54:05 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] configure: consistent command -v usage\r
+Date: Wed, 18 Feb 2015 16:54:01 +0200\r
+Message-Id: <1424271241-11885-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 2.0.0\r
+Cc: tomi.ollila@iki.fi\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 18 Feb 2015 15:06:58 -0000\r
+\r
+When the shell builtin `command -v` operates normally, it either\r
+prints the path of the arg given to it and returns zero -- or it\r
+returns nonzero and prints nothing.\r
+In abnormal situations something might be printed to stderr and\r
+in that case we want to know about it; therefore the used\r
+command -v stderr redirections to /dev/null have been removed.\r
+\r
+The `hash` (builtin) command in ksh returns zero even the arg\r
+given to is is not found in path. For that and for consistency\r
+the one appearance of it has been converted to `command -v`.\r
+---\r
+\r
+marked trivial\r
+\r
+ configure | 6 +++---\r
+ 1 file changed, 3 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/configure b/configure\r
+index a6b49ae..4af7ba9 100755\r
+--- a/configure\r
++++ b/configure\r
+@@ -378,7 +378,7 @@ printf "Checking for python... "\r
+ have_python=0\r
+ \r
+ for name in python python2 python3; do\r
+- if command -v $name > /dev/null 2>&1; then\r
++ if command -v $name > /dev/null; then\r
+ have_python=1\r
+ python=$name\r
+ printf "Yes ($name).\n"\r
+@@ -435,7 +435,7 @@ else\r
+ fi\r
+ \r
+ printf "Checking if doxygen is available... "\r
+-if command -v doxygen > /dev/null 2>&1; then\r
++if command -v doxygen > /dev/null; then\r
+ printf "Yes.\n"\r
+ have_doxygen=1\r
+ else\r
+@@ -444,7 +444,7 @@ else\r
+ fi\r
+ \r
+ printf "Checking if sphinx is available and supports nroff output... "\r
+-if hash sphinx-build > /dev/null 2>&1 && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then\r
++if command -v sphinx-build > /dev/null && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then\r
+ printf "Yes.\n"\r
+ have_sphinx=1\r
+ else\r
+-- \r
+1.9.1\r
+\r