[Top][All Lists]

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

Re: Syncing with gnulib regex code

From: Paul Eggert
Subject: Re: Syncing with gnulib regex code
Date: Thu, 06 Dec 2007 15:34:57 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Tony Abou-Assaleh <address@hidden> writes:

> The return code of 2 causes Spenser test#37 to fail. I am thinking
> that one of the following needs to be done (in order of my
> preference):
> 1) Correct Spenser test#37 to expect 2 as the return code.

That would be OK.

> 2) Correct src/grep.c to always return 1 on error

No, that's definitely not right.

> 3) Report a bug to gnulib that "Invalid range end" is misbehaving

That's not right either.  Gnulib is doing the right thing.

Another possibility is:

4) Specify RE_NO_EMPTY_RANGES so that [b-a] is valid.

I suppose this would be more backward-compatible with the previous 'grep'.

reply via email to

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