From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NY0LM-0006V5-1T for qemu-devel@nongnu.org; Thu, 21 Jan 2010 11:57:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NY0LH-0006Tg-2D for qemu-devel@nongnu.org; Thu, 21 Jan 2010 11:57:15 -0500 Received: from [199.232.76.173] (port=50093 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NY0LG-0006Tb-TE for qemu-devel@nongnu.org; Thu, 21 Jan 2010 11:57:10 -0500 Received: from mx20.gnu.org ([199.232.41.8]:12452) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NY0Jk-0000Vf-74 for qemu-devel@nongnu.org; Thu, 21 Jan 2010 11:57:10 -0500 Received: from mail2.shareable.org ([80.68.89.115]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NY0JF-0000rX-52 for qemu-devel@nongnu.org; Thu, 21 Jan 2010 11:55:05 -0500 Date: Thu, 21 Jan 2010 16:53:57 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: Stop using "which" in ./configure Message-ID: <20100121165357.GA26539@shareable.org> References: <20100119101119.GA11358@bee.dooz.org> <20100119114750.GB11613@bee.dooz.org> <20100120113741.GA31679@pig.zood.org> <20100120134940.GA547@pig.zood.org> <20100120165103.GA3303@pig.zood.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Cc: qemu-devel@nongnu.org Måns Rullgård wrote: > If IFS is not set, the shell shall behave as if the value of IFS is > , , and > > If you make that IFS=${local_ifs:-$(printf ' \t\n')} it should be safe. > Likewise if you set the value first. Remove the colon. The above will wrongly change empty IFS, which is not the same as unset IFS. That said, nobody should expect ./configure to work if IFS has an unusual value anyway. Probably .configure should just set it to the standard value at the start. -- Jamie