Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 363031

Summary: foo=1aa does not work
Product: Gentoo Hosted Projects Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: libbashAssignee: Petteri Räty (RETIRED) <betelgeuse>
Status: RESOLVED FIXED    
Severity: normal CC: qiaomuf
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Petteri Räty (RETIRED) gentoo-dev 2011-04-11 05:49:46 UTC
betelgeuse@pena ~/gsoc/libbash $ ./ast_printer -e "foo=1aa"
-memory-(1)  : error 3 : ()* loopback of 103:12: ( ( BLANK )+ var_def )*, at offset 4
    near [Index: 3 (Start: 144213665-Stop: 144213666) ='aa', type<117> Line: 1 LinePos:4]
     : cannot match to any predicted input...
(LIST Tree Error Node)

The value rule should not have num and var_ref as alternatives. fname will cover those cases with a little bit more noise in the ast.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2011-04-11 13:47:55 UTC
Fixed.