Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbPqQ-00013j-JN for qemu-devel@nongnu.org; Wed, 12 Aug 2009 22:15:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbPqK-00012I-4P for qemu-devel@nongnu.org; Wed, 12 Aug 2009 22:15:09 -0400 Received: from [199.232.76.173] (port=43341 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbPqK-00012C-1p for qemu-devel@nongnu.org; Wed, 12 Aug 2009 22:15:04 -0400 Received: from mail-yw0-f193.google.com ([209.85.211.193]:51978) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbPqJ-00055I-QC for qemu-devel@nongnu.org; Wed, 12 Aug 2009 22:15:03 -0400 Received: by ywh31 with SMTP id 31so648432ywh.4 for ; Wed, 12 Aug 2009 19:15:03 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <2a50f7880908121801m34efd3fbnadd3af122be19381@mail.gmail.com> Date: Wed, 12 Aug 2009 19:15:03 -0700 Message-ID: <2a50f7880908121915u5d2e61afsf47ced15c0467fa5@mail.gmail.com> Subject: Re: [Qemu-devel] RE: 971c47c - Do not use $SHELL to invoke our scripts From: Jordan Justen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: malc Cc: qemu-devel@nongnu.org On Wed, Aug 12, 2009 at 7:03 PM, malc wrote: > On Wed, 12 Aug 2009, Jordan Justen wrote: > >> Regarding commit 971c47c, this causes a build error for me on Ubuntu >> 9.04. =A0I think this might be because Ubuntu/Debian have moved /bin/sh >> from bash to dash. =A0The build is okay if I change the first line of >> configure from /bin/sh to /bin/bash. =A0Should configure point directly >> at bash? > > Please be more specific, what is the error? And FWIW i mainly use ash > to run QEMUs configure (and dash is derived from ash as far as i can > tell) It seems to only be an issue with dash if I run it as './configure'. 'dash configure' is okay. With /bin/sh -> bash, if I insert an 'echo $_' before this line in configur= e: THISSHELL=3D${_:-/bin/sh} then $_ is blank. With /bin/sh -> dash, 'echo $_' just before that line will show $_ to be './configure'. Therefore THISSHELL becomes './configure', which is obviously invalid. I'm not sure of a fix yet... > > -- > mailto:av1474@comtv.ru >