Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366883 - libbash doesn't generate correct AST for invalid bracket pattern expressions
Summary: libbash doesn't generate correct AST for invalid bracket pattern expressions
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: libbash (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 13:49 UTC by Mu Qiao (RETIRED)
Modified: 2018-01-25 17:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)