Bug#486181: grub2: if does not suppress errors from command run as condition
Josh Triplett
josh at freedesktop.org
Sat Jun 14 05:38:49 UTC 2008
Package: grub2
Severity: normal
The "if" command does not suppress errors from the command run in its
condition. For example, this:
if [ 0=1 ] ; then echo t ; else echo f ; fi
will correctly echo "f", but will then print "error: false" and wait
for a key before continuing. The "if" command needs to suppress this
error.
- 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