[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in extended pattern matching *!()

From: hans1worst
Subject: Re: Bug in extended pattern matching *!()
Date: Thu, 27 Sep 2012 21:52:56 -0700 (PDT)
User-agent: G2/1.0

> The question is whether or not !(x) should match the empty string. The
> bash matcher treats it similarly to [!x], which does not.

It does however match the empty string at most times. So I guess that's the 
real bug. Again, there is some inconsistency in

$ echo *!(x)a # does match empty string
a ba
$ echo a*!(x) # does not

[OT] Thanks for your work for the Bash project. I've just learned that you've 
been the main maintainer for a long time, so keep it up! :) 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]