From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGaFM-0004qY-6g for qemu-devel@nongnu.org; Mon, 12 Feb 2007 07:25:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGaFK-0004or-B0 for qemu-devel@nongnu.org; Mon, 12 Feb 2007 07:25:26 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGaFK-0004oj-5h for qemu-devel@nongnu.org; Mon, 12 Feb 2007 07:25:26 -0500 Received: from 210-145-021-227.jp.fiberbit.net ([210.145.21.227] helo=rome.local.gazonk.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1HGaFJ-0001bK-IB for qemu-devel@nongnu.org; Mon, 12 Feb 2007 07:25:26 -0500 Received: from [192.168.75.3] (conan.local.gazonk.net [192.168.75.3]) by rome.local.gazonk.net (8.13.7+Sun/8.13.7) with ESMTP id l1CCPCC1019682 for ; Mon, 12 Feb 2007 21:25:21 +0900 (JST) In-Reply-To: <1961239919.20070212101714@ena.si> References: <45CE7A08.9090601@codemonkey.ws> <45CF554C.8070805@codemonkey.ws> <2F8427AE-BC1B-4DD9-BC1F-08B4E57B8F80@gazonk.net> <1961239919.20070212101714@ena.si> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Message-Id: <4012CB47-D7EC-43A8-A9A4-BDA6A22B2FB6@gazonk.net> Content-Transfer-Encoding: quoted-printable From: Krister Joas Subject: Re: [Qemu-devel] Remove bash-ism from configure Date: Mon, 12 Feb 2007 21:25:11 +0900 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 Feb 12, 2007, at 6:17 PM, Jernej Simon=C4=8Di=C4=8D wrote: > On Monday, February 12, 2007, 9:55:25, Krister Joas wrote: > >> You should take a look at that executable. On most systems I know, / >> usr/bin/which is a csh script. It has to be because it also finds >> aliases. It may or may not be portable to use 'which', I'm not >> really sure, but it's not very efficient. > > On my Linux boxes, which is either a sh script (on Debian), or a =20 > (compiled) > program (on Gentoo and Slackware). On my firewall (based on =20 > FreeBSD), which > is also a program (and also a /bin/sh builtin). I stand corrected. NetBSD seems to have removed it completely and =20 instead relies on shell built-in commands. On OpenBSD it's also a =20 binary. My references were Solaris and Mac OS X, where it's =20 unfortunately still a csh script. Krister