From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXawN-0007XG-7C for qemu-devel@nongnu.org; Wed, 20 Jan 2010 08:49:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXawI-0007Vr-Nu for qemu-devel@nongnu.org; Wed, 20 Jan 2010 08:49:46 -0500 Received: from [199.232.76.173] (port=41778 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXawI-0007Vl-BQ for qemu-devel@nongnu.org; Wed, 20 Jan 2010 08:49:42 -0500 Received: from pig.zood.org ([194.242.112.24]:35196) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NXawH-00026T-Te for qemu-devel@nongnu.org; Wed, 20 Jan 2010 08:49:42 -0500 Date: Wed, 20 Jan 2010 14:49:40 +0100 From: =?iso-8859-1?Q?Lo=EFc?= Minier Subject: Re: [Qemu-devel] Re: Stop using "which" in ./configure Message-ID: <20100120134940.GA547@pig.zood.org> References: <20100117124528.GA24106@bee.dooz.org> <4B531406.2070904@mail.berlios.de> <20100119101119.GA11358@bee.dooz.org> <20100119114750.GB11613@bee.dooz.org> <20100120113741.GA31679@pig.zood.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Jan 20, 2010, Paolo Bonzini wrote: > On 01/20/2010 12:37 PM, Lo=EFc Minier wrote: > >+ # not found > >+ IFS=3D"$local_ifs" > If you do this, you should set IFS to space-tab-lf at the beginning of=20 > the script, like this: >=20 > IFS=3D" "" "" > " Are you saying that I can't backup/restore IFS without setting it first? That would be odd; it works with bash, dash, and zsh here. Pointers to affected shell would help me avoid other issues with them. Alternatively, I could set IFS in a subshell. I checked the autoconf Portable Shell Programming section, but didn't find a similar recommendation: http://www.gnu.org/software/autoconf/manual/autoconf.html#index-IFS-16= 39 > or this (better because it does not rely on embedding whitespace=20 > characters within the line): > IFS=3D`printf ' \t'`" > " If we go that route, perhaps IFS=3D"`printf ' \t\n'`" would be more readable? I'm not sure how common printf is though. --=20 Lo=EFc Minier