From: "Nicolas de Pesloüan" <nicolas.2p.debian@gmail.com>
To: Alexander Kurtz <kurtz.alex@googlemail.com>
Cc: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [PATCH] add proper variable quoting to grub-mkconfig_lib (Debian bug #612417)
Date: Tue, 05 Apr 2011 21:16:13 +0200 [thread overview]
Message-ID: <4D9B6A7D.4090306@gmail.com> (raw)
In-Reply-To: <1302008107.14852.20.camel@alexander>
Le 05/04/2011 14:55, Alexander Kurtz a écrit :
> Hi,
>
> currently you can't use an image which has whitespace in its filename as
> GRUB background image because grub-mkconfig_lib lacks proper variable
> quoting (see [1] for more information). I've attached three patches
> which should fix this problem:
>
> quote-big.patch:
> This patch fixes the problem with the minimal set of changes.
>
> quote-medium.patch:
> This patch adds proper quoting wherever it is safe to do so.
>
> quote-small.patch
> This patch additionally adds quoting in cases like this:
> ${grub-probe} --foo --bar => "${grub-probe}" --foo --bar
> This breaks things if ${grub-probe} contains additional parameters.
>
> Please note that I already submitted similar patches a while ago[2], but
> these are a little outdated now. The attached patches have been
> refreshed and should apply cleanly to the current trunk.
>
> What do you think?
Why do you use construct like "${x}" instead of "$x"?
${x} is useless, unless the character that follow $x might be part of the variable name:
"${x}y" is obviously different from "$xy", but "${x}" is identical to "$x".
Nicolas.
>
> Best regards
>
> Alexander Kurtz
>
> [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612417#5
> [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612417#10
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
next prev parent reply other threads:[~2011-04-05 19:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 12:55 [PATCH] add proper variable quoting to grub-mkconfig_lib (Debian bug #612417) Alexander Kurtz
2011-04-05 19:16 ` Nicolas de Pesloüan [this message]
2011-04-05 19:30 ` Colin Watson
2011-04-05 19:32 ` Alexander Kurtz
2011-04-05 19:47 ` Colin Watson
2011-04-05 20:07 ` Nicolas de Pesloüan
2011-04-05 20:53 ` Colin Watson
2011-04-05 21:27 ` Nicolas de Pesloüan
2011-04-06 15:31 ` Alexander Kurtz
2011-04-06 18:14 ` Nicolas de Pesloüan
2011-04-06 19:31 ` Colin Watson
2011-04-06 19:42 ` Nicolas de Pesloüan
2011-04-08 13:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-09 14:32 ` Alexander Kurtz
2011-04-10 13:33 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D9B6A7D.4090306@gmail.com \
--to=nicolas.2p.debian@gmail.com \
--cc=grub-devel@gnu.org \
--cc=kurtz.alex@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.