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