From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hli0a-0003KD-8z for qemu-devel@nongnu.org; Wed, 09 May 2007 04:58:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hli0Y-0003JO-KJ for qemu-devel@nongnu.org; Wed, 09 May 2007 04:58:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hli0Y-0003JG-DT for qemu-devel@nongnu.org; Wed, 09 May 2007 04:58:50 -0400 Received: from kurt.tools.de ([192.76.135.70]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HlhtM-0004dz-MV for qemu-devel@nongnu.org; Wed, 09 May 2007 04:51:25 -0400 Received: from imap.tools.intra (imap.tools.intra [172.20.0.17]) by kurt.TooLs.DE (Postfix) with ESMTP id 8F05DC643 for ; Wed, 9 May 2007 10:51:20 +0200 (MEST) Received: from tiger2.tools.intra (tiger2.tools.intra [172.20.0.11]) by imap.tools.intra (8.13.6+Sun/8.13.6) with SMTP id l498pIUN022707 for ; Wed, 9 May 2007 10:51:18 +0200 (CEST) Message-Id: <200705090851.l498pIUN022707@imap.tools.intra> Date: Wed, 9 May 2007 10:51:17 +0200 (CEST) From: Juergen Keil Subject: Re: [Qemu-devel] [PATCH] configure MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: hZbi4FrF5U8H752Tdr/JQg== Reply-To: Juergen Keil , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > Thiemo Seufer wrote: > Jeff Chua wrote: > [snip] > > @@ -567,7 +567,8 @@ > > fi > > > > # Check if tools are available to build documentation. > > -if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then > > +if [ -x "`which texi2html 2>/dev/null`" \ > > + -a -x "`which pod2man 2>/dev/null`" ]; then > > Under which circumstances does "which" complain about unavailable > executables? Isn't the use of "which" wrong, anyway? "which" belongs to csh/tcsh, and tells you about csh's/tcsh's idea about a command or a csh command alias. IMO, for a /bin/sh (or bash) script, using the "type" command would be a better idea.