Bug#486180: grub2: Variable parsing adds spaces

Josh Triplett josh at freedesktop.org
Sat Jun 14 05:35:10 UTC 2008


Package: grub2
Severity: normal

A command that includes a variable ends up splitting the arguments at
that point, regardless of spaces or quoting on the command line.  For
example, this:

set foo=1
echo x${foo}y

prints "x 1 y".

This bug makes it difficult to use variables for any non-trivial
purpose.

- Josh Triplett

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-grub-devel mailing list