URL:
<http://savannah.gnu.org/bugs/?39210>
Summary: grub2.00 typo in yylex.l for "[[" / "]]"
Project: GNU GRUB
Submitted by: dougray
Submitted on: Sun 09 Jun 2013 09:12:16 GMT
Category: None
Severity: Major
Priority: 5 - Normal
Item Group: Non-software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name: Douglas Ray
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Any
Release:
Release: other
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
(root)/grub/trunk/grub : /grub-core/script/yylex.l (revision 5030) :
173
"[[" { RECORD; return GRUB_PARSER_TOKEN_RSQBR2; }
174
"]]" { RECORD; return GRUB_PARSER_TOKEN_LSQBR2; }
----
"R" and "L" swapped.
Also is reverse of token id usage in parser.y, where R and L
are correct (making '[' and "[[" synonyms, ditto '[' and "]]").
Don't see where they're used - are square brackets gobbled
as lookaheads somewhere? The package I'm using seems to work
for "if [ ...".
Browsed at bzr:
http://bzr.savannah.gnu.org/lh/grub/trunk/grub/annotate/head:/grub-core/script/yylex.l
Appears the same in the 2.00 tarball at:
ftp://ftp.gnu.org/gnu/grub/
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39210>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-grub