Re: "And" extended matching operator

2012-12-04 Thread Irek Szczesniak
On Mon, Dec 3, 2012 at 7:48 PM, Dan Douglas wrote: > On Wednesday, November 28, 2012 07:23:17 PM Nikolai Kondrashov wrote: >> @(a&!(b)) > > This is the syntax ksh93 already uses. So far nobody else has adopted it, but > the equivalent as you already mentioned is the transformation to: > > !(!(...)

Re: "And" extended matching operator

2012-12-03 Thread Dan Douglas
On Wednesday, November 28, 2012 07:23:17 PM Nikolai Kondrashov wrote: > @(a&!(b)) This is the syntax ksh93 already uses. So far nobody else has adopted it, but the equivalent as you already mentioned is the transformation to: !(!(...)|!(...)) It's just a matter of implementing it. Other handy m

Re: "And" extended matching operator

2012-11-28 Thread Nikolai Kondrashov
On 11/28/2012 04:58 PM, Nikolai Kondrashov wrote: Would it be possible to add another extended matching operator to already supported ones? It's just we have "or" in @() and "not (or)" in !(), but no "and". And combining patterns without it is awkward. If I want to say "a and not b", I have to w

"And" extended matching operator

2012-11-28 Thread Nikolai Kondrashov
Hi everyone, Would it be possible to add another extended matching operator to already supported ones? It's just we have "or" in @() and "not (or)" in !(), but no "and". And combining patterns without it is awkward. If I want to say "a and not b", I have to write "not (not a or c)", like this: