From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSaBC-0001Gh-CR for qemu-devel@nongnu.org; Sat, 05 Oct 2013 18:18:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSaB6-0000a9-J6 for qemu-devel@nongnu.org; Sat, 05 Oct 2013 18:18:30 -0400 Received: from wanbli.kerneis.info ([2001:41d0:8:38ad::1]:41070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSaB6-0000a3-7T for qemu-devel@nongnu.org; Sat, 05 Oct 2013 18:18:24 -0400 Date: Sat, 5 Oct 2013 23:18:21 +0100 From: Gabriel Kerneis Message-ID: <20131005221820.GA3892@kerneis.info> References: <1380984092-18502-1-git-send-email-gabriel@kerneis.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] config-host.mak: escape configure arguments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , QEMU Developers On Sun, Oct 06, 2013 at 12:54:08AM +0900, Peter Maydell wrote: > So this sed script appears to convert literal newlines in the input > Is that what's intended? Yes. > It doesn't seem very useful because if you cut-n-paste (or pipe) > 'hello\nworld' into a shell you get an actual backslash-n, not a newline. You're right. Then the best is probably to expect that ./configure parameters will not get any litteral newline (and remove the sed call doing the substitution in my patch). Or detect them (with grep) and print an error? Litteral newlines break badly config-host.mak anyway. -- Gabriel