Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1O1ns0-00047t-QH for mharc-grub-devel@gnu.org; Tue, 13 Apr 2010 17:42:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1nry-00047o-Pq for grub-devel@gnu.org; Tue, 13 Apr 2010 17:42:06 -0400 Received: from [140.186.70.92] (port=53496 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1nrw-00047g-Gq for grub-devel@gnu.org; Tue, 13 Apr 2010 17:42:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1nrv-0002Mc-2C for grub-devel@gnu.org; Tue, 13 Apr 2010 17:42:04 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:54818) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1nru-0002MQ-Sp for grub-devel@gnu.org; Tue, 13 Apr 2010 17:42:03 -0400 X-Originating-IP: 217.70.178.45 Received: from mfilter4-d.gandi.net (mfilter4-d.gandi.net [217.70.178.45]) by relay1-d.mail.gandi.net (Postfix) with ESMTP id 2DCFF2552FB; Tue, 13 Apr 2010 23:41:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter4-d.gandi.net Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by mfilter4-d.gandi.net (mfilter4-d.gandi.net [217.70.178.45]) (amavisd-new, port 10024) with ESMTP id DJXlgx0vjCJq; Tue, 13 Apr 2010 23:41:55 +0200 (CEST) X-Originating-IP: 80.32.81.197 Received: from mail.pina.cat (197.Red-80-32-81.staticIP.rima-tde.net [80.32.81.197]) (Authenticated sender: pina@pina.cat) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id C4B7A2552F5; Tue, 13 Apr 2010 23:41:50 +0200 (CEST) Received: from pinux (cpc2-hari6-0-0-cust86.hari.cable.virginmedia.com [82.45.164.87]) by mail.pina.cat (Postfix) with ESMTPA id 725E5288F2F5E; Tue, 13 Apr 2010 23:34:46 +0200 (CEST) Received: from pinux (localhost.localdomain [127.0.0.1]) by pinux (Postfix) with ESMTP id 68E81894F9E; Tue, 13 Apr 2010 22:33:09 +0100 (BST) Received: by pinux (Postfix, from userid 1000) id 526C2894F9A; Tue, 13 Apr 2010 22:31:27 +0100 (BST) Date: Tue, 13 Apr 2010 22:31:27 +0100 From: Carles Pina i Estany To: The development of GNU GRUB Message-ID: <20100413213127.GD31498@pina.cat> References: <20100410211015.GA26131@pina.cat> <20100412000906.GG11833@riva.ucam.org> <20100413130419.GA9578@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100413130419.GA9578@riva.ucam.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: marcos@softastur.org, malditoastur@gmail.com Subject: Re: escape strings in grub.cfg X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 21:42:07 -0000 Hi, On Apr/13/2010, Colin Watson wrote: > On Mon, Apr 12, 2010 at 01:09:06AM +0100, Colin Watson wrote: > > With my suggestion, I'd recommend: > > > > gettext_quoted () { > > gettext "$@" | sed "s/'/'\\\\''/g" > > } > > > > ... and then make sure it's enclosed in '' rather than "" wherever it's > > used (or modify the sed to put single-quotes at the start and end, if > > that works out neater). > > I've gone ahead and committed a patch based on this to trunk, and I'll > backport it to Ubuntu Lucid shortly as well. Testing welcome! thanks Colin, I'll do some tests as well. -- Carles Pina i Estany http://pinux.info