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

Bug 366883

Summary: libbash doesn't generate correct AST for invalid bracket pattern expressions
Product: Gentoo Hosted Projects Reporter: Mu Qiao (RETIRED) <qiaomuf>
Component: libbashAssignee: Petteri Räty (RETIRED) <betelgeuse>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mu Qiao (RETIRED) gentoo-dev 2011-05-11 13:49:44 UTC
The AST of "echo [[:invalid:]]" is (LIST (COMMAND (STRING echo) (STRING (MATCH_ANY (CHARACTER_CLASS invalid)))))
It's not correct as patterns shouldn't be command argument. It should be parsed verbatim as a string.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2011-05-11 13:51:32 UTC
Patterns can be command arguments. Invalid patterns need to be passed through verbatim.
Comment 2 Pacho Ramos gentoo-dev 2018-01-25 17:57:42 UTC
Developer retired (and his mail address is not active anymore)