Fix regexp parsing with RE_CONTEXT_INDEP_OPS
Andreas Schwab
schwab@suse.de
Mon Dec 15 12:18:00 GMT 2003
Ulrich Drepper <drepper@redhat.com> writes:
> Andreas Schwab wrote:
>> Posixly the
>> behaviour of "(*)" is undefined, which is probably why it's not in
>> rxspencer. But it looks like it's part of traditional egrep
>> behaviour,
>
> Where do you have this "traditional egrep behavior" information from?
It's part of the orignal GNU grep testsuite. I didn't claim it's
first hand information.
> Solaris' egrep fails with errors for "(*)b" and "()b".
Which is ok, since POSIX makes it undefined. Which errors, btw?
> Which implementation behaves the way you expect it?
The old GNU regexp implementation. The current behaviour is violates
the specs for RE_CONTEXT_INDEP_OPS, and the error message does not
make any sense. This is independent of the actual GNU/BSD/Solaris
etc. egrep behaviour.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-hacker
mailing list