From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hlngv-0000BZ-Sr for qemu-devel@nongnu.org; Wed, 09 May 2007 11:02:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hlngu-0000Ak-DE for qemu-devel@nongnu.org; Wed, 09 May 2007 11:02:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hlngu-0000Af-7g for qemu-devel@nongnu.org; Wed, 09 May 2007 11:02:56 -0400 Received: from wr-out-0506.google.com ([64.233.184.231]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HlnZg-0003pt-UJ for qemu-devel@nongnu.org; Wed, 09 May 2007 10:55:29 -0400 Received: by wr-out-0506.google.com with SMTP id i20so403717wra for ; Wed, 09 May 2007 07:55:28 -0700 (PDT) Message-ID: Date: Wed, 9 May 2007 22:55:27 +0800 From: "Jeff Chua" Subject: Re: [Qemu-devel] [PATCH] configure In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200705090851.l498pIUN022707@imap.tools.intra> Reply-To: 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 On 5/9/07, Andreas Schwab wrote: > "Jeff Chua" 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.