summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2012-02-05 18:00:45 +0100
committerJim Meyering <meyering@redhat.com>2012-02-26 11:01:14 +0100
commit74dc111398feff35e54978d442b9a488c05829b5 (patch)
treea5abc7d7a20126a4c65152a52b593996f3464eb7 /NEWS
parentd7acc337e47563b8334b56c5d479c81a4a060c8f (diff)
downloadgrep-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--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 1d687ec4..f895ed49 100644
--- a/NEWS
+++ b/NEWS
@@ -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