[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: escape strings in grub.cfg
From: |
Carles Pina i Estany |
Subject: |
Re: escape strings in grub.cfg |
Date: |
Tue, 13 Apr 2010 22:31:27 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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