Follow-up Comment #6, bug #24452 (project grep):
The code you patched is for POSIX regular expression, not PCRE. Did you test
the patch? PCRE handles this with b, which is also buggy:
$ echo x | grep -Pw 'a?'
x
$ echo x | grep -w 'a?'
$
So I'll probably apply a variant of your patch to handle the PCRE case.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?24452>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/