[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] configure
From: |
Juergen Keil |
Subject: |
Re: [Qemu-devel] [PATCH] configure |
Date: |
Wed, 9 May 2007 10:51:17 +0200 (CEST) |
> 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.
Re: [Qemu-devel] [PATCH] configure, Joachim Henke, 2007/05/09