Re: Some globstar patterns produce duplicate entries and a null filename

2012-12-04 Thread Chet Ramey
On 12/1/12 10:41 AM, Ulf Magnusson wrote: > GNU bash, version 4.2.24(1)-release (i686-pc-linux-gnu) > > Take the following example, assumed to be run in an empty directory: > > $ mkdir a > $ echo ** > a > $ echo **/** > a a > $ echo **/**/** > a a a > > I would expect the result to be just 'a'

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: > > !(!(...)