diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2012-02-05 18:00:45 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-02-26 11:01:14 +0100 |
commit | 74dc111398feff35e54978d442b9a488c05829b5 (patch) | |
tree | a5abc7d7a20126a4c65152a52b593996f3464eb7 /NEWS | |
parent | d7acc337e47563b8334b56c5d479c81a4a060c8f (diff) | |
download | grep-74dc111398feff35e54978d442b9a488c05829b5.tar.gz |
dfa: fix a subtle constraint encoding bug
* src/dfa.c (SUCCEEDS_IN_CONTEXT, PREV_NEWLINE_DEPENDENT,
PREV_LETTER_DEPENDENT): Rewrite to handle all 3*3=9 possible
combinations of previous and next character contexts.
(MATCHES_NEWLINE_CONTEXT, MATCHES_LETTER_CONTEXT): Remove.
(NO_CONSTRAINT, BEGLINE_CONSTRAINT, ENDLINE_CONSTRAINT,
BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT, LIMWORD_CONSTRAINT,
NOTLIMWORD_CONSTRAINT): Switch to new encoding.
* NEWS: Document resulting bugfix.
* tests/spencer1.tests: Add regression test.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -42,6 +42,11 @@ GNU grep NEWS -*- outline -*- grep no longer emits an error message and quits on MS-Windows when invoked with the -r option. + grep no longer misinterprets some alternations involving anchors + (^, $, \< \> \B, \b). For example, grep -E "(^|\B)a" no + longer reports a match for the string "x a". + [bug present since "the beginning"] + ** New features If no file operand is given, and a command-line -r or equivalent |