[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] configure
From: |
Jeff Chua |
Subject: |
Re: [Qemu-devel] [PATCH] configure |
Date: |
Wed, 9 May 2007 22:55:27 +0800 |
On 5/9/07, Andreas Schwab <address@hidden> wrote:
"Jeff Chua" <address@hidden> 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
/bin/awk
/usr/bin/awk
# type foo
-bash: type: foo: not found
# type -p foo
#
Interesting. "type -p foo" does the same as "type foo 2>/dev/null",
but only if "foo" is not found. Tried that on "awk" above, and it
prints the paths.
Thanks,
Jeff.
- Re: [Qemu-devel] [PATCH] configure, (continued)
Re: [Qemu-devel] [PATCH] configure, Ben Taylor, 2007/05/08
Re: [Qemu-devel] [PATCH] configure, Juergen Keil, 2007/05/09
Re: [Qemu-devel] [PATCH] configure, Joachim Henke, 2007/05/09