I believe 'and' actually has a lower operator precedence than the comma operator, so your first expression is parsing as
Try replacing 'and' with '&&' and see if that helps.( expression ) and ( expression ) and ( expression, @files )
In reply to Re: Confusing syntax error with grep
by rsteinke
in thread Confusing syntax error with grep
by gumpu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |