|
From: | Dave Pickens |
Subject: | [bug #50244] Scripting fails on greater and less compares |
Date: | Tue, 7 Feb 2017 11:50:04 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:51.0) Gecko/20100101 Firefox/51.0 |
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: address@hidden 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/
[Prev in Thread] | Current Thread | [Next in Thread] |