[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in extended pattern matching *!()
From: |
Chet Ramey |
Subject: |
Re: Bug in extended pattern matching *!() |
Date: |
Fri, 28 Sep 2012 09:11:35 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
On 9/28/12 12:52 AM, hans1worst@gmail.com wrote:
>> 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
It's whether or not it matches the NUL at the end of the search string. I
agree that it should, or at least that (x) should not match, so !(x)
should, and that will be fixed for the next version.
> [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! :)
:-)
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/