id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
2309	"""Shell patterns"" broken beyond repair"	wjaguar	slavazanko	"`Function mc_search__glob_translate_to_regex() in lib/search/glob.c is horribly broken, and mishandles a number of trivial patterns such as:`
`- an inverted character class: ""[^abc]"" or ""[!abc]""`
`- a freestanding comma: ""abc,def""`
`- a literal brace: ""{"" or ""}""`
`- an incorrectly formed brace expansion: ""{abc}""`
`- a sequence expression: ""{5..10}"" or ""{a..f}""`

`Also, a nested brace expansion: ""a{b,c{d,e}}f"" will produce capturing parentheses for every pair of braces, instead of only the outermost pair.`

`All this because current code is far too simple-minded to correctly convert Bash patterns into PCRE regexes, and needs a complete rewrite.`
"	defect	reopened	major	4.8.34	mc-search	4.8.33						no branch	
