On 5/9/07, Andreas Schwab <[EMAIL PROTECTED]> wrote:
"Jeff Chua" <[EMAIL PROTECTED]> writes:
> "which" returns the first path, "type" returns all paths.
You want "type -p".
# type awk
awk is /bin/awk
awk is /usr/bin/awk
# type -p awk
On 5/9/07, Juergen Keil <[EMAIL PROTECTED]> wrote:
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.
"which"
On 5/9/07, Thiemo Seufer <[EMAIL PROTECTED]> wrote:
I don't see a warning for e.g. "which foo" on my system. Could you
describe your system and paste the output the which command produces
there?
# which foo
which: no foo in
(/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11
ECTED]> 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/nul
Avi had suggest I post this patch here so that it can be included in qemu
instead of kvm.
Here's a little patch to silent ...
- sdl-config when SDK is compiled without static library
- texi2html when not found
Thanks,
Jeff
--- kvm/qemu/configure.org 2007-05-07 20:36:5