bug-grep
[Top][All Lists]
Advanced

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

Re: Latest snapshot and glibc regex support


From: Matthew Burgess
Subject: Re: Latest snapshot and glibc regex support
Date: Fri, 19 Mar 2010 22:32:50 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 19/03/2010 10:03, Jim Meyering wrote:

We expect a reversed range to make grep give a diagnostic and exit 2.
With glibc (--without-included-regex), you get no diagnostic and exit 1.

OK, following the gnulib change at http://lists.gnu.org/archive/html/bug-gnulib/2010-02/msg00006.html and subsequent bug report at http://sourceware.org/bugzilla/show_bug.cgi?id=11244 I've come up with the attached patch (against the latest snapshot). It results in grep using Glibc's regex implementation and all tests pass.

However, I will admit (hopefully before the laughter starts!) that I'm not an experienced C coder, so the patch might just be a fluke! I am certainly more than happy to receive constructive criticism on its contents or format though.

Regards,

Matt.

Attachment: grep-glibc.patch
Description: Text document


reply via email to

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