Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hlim8-00051s-R5 for qemu-devel@nongnu.org; Wed, 09 May 2007 05:48:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hlim7-00051D-Ty for qemu-devel@nongnu.org; Wed, 09 May 2007 05:48:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hlim7-000519-Ko for qemu-devel@nongnu.org; Wed, 09 May 2007 05:47:59 -0400 Received: from mx2.suse.de ([195.135.220.15]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hliev-00011d-Kx for qemu-devel@nongnu.org; Wed, 09 May 2007 05:40:33 -0400 From: Andreas Schwab Subject: Re: [Qemu-devel] [PATCH] configure References: <200705090851.l498pIUN022707@imap.tools.intra> Date: Wed, 09 May 2007 11:40:21 +0200 In-Reply-To: (Jeff Chua's message of "Wed\, 9 May 2007 17\:18\:51 +0800") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 "Jeff Chua" writes: > On 5/9/07, Juergen Keil 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" returns the first path, "type" returns all paths. You want "type -p". Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."