URL:
<http://savannah.gnu.org/bugs/?50244>
Summary: Scripting fails on greater and less compares
Project: GNU GRUB
Submitted by: drummerdp
Submitted on: Tue 07 Feb 2017 04:50:02 PM UTC
Category: None
Severity: Major
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: Dave Pickens
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Any
Release:
Release: 2.02~beta1
Reproducibility: None
Planned Release: None
_______________________________________________________
Details:
The following script lines fail with a syntax error
set bugtest=a
if [ $bugtest = a ] ; then echo yes ; fi # This works
if [ $bugtest > a ] ; then echo yes ; fi # Fails syntax
if [ $bugtest > 'a' ] ; then echo yes ; fi # Fails syntax
if [ $bugtest > "a" ] ; then echo yes ; fi # Fails syntax
if [ $bugtest > ((a)) ] ; then echo yes ; fi # Fails syntax
Also using the less than sign < fails in the same way with messages:
error: syntax error.
error: Incorrect command.
error: syntax error.
This happens on all releases of Grub 2.02 that I have tried including Grub
2.02 RC1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50244>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub