[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: escape strings in grub.cfg

From: Colin Watson
Subject: Re: escape strings in grub.cfg
Date: Tue, 13 Apr 2010 14:04:19 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

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!

Colin Watson                                       address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]