summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2020-10-04 09:39:39 -0700
committerJim Meyering <meyering@fb.com>2020-10-11 20:30:30 -0700
commitdf33ff807de40b131ba835ee4b0d27a0577a17ab (patch)
tree877177afbfe2d6c5b2805074d7a488fdac22a26a /NEWS
parentf31abf786f61f4bdd7134559a5f155fc9c8c2513 (diff)
downloadgrep-df33ff807de40b131ba835ee4b0d27a0577a17ab.tar.gz
grep: -P: report input filename upon PCRE execution failure
Without this, it could be tedious to determine which input file evokes a PCRE-execution-time failure. * src/pcresearch.c (Pexecute): When failing, include the error-provoking file name in the diagnostic. * src/grep.c (input_filename): Make extern, since used above. * src/search.h (input_filename): Declare. * tests/filename-lineno.pl: Test for this. ($no_pcre): Factor out. * NEWS (Bug fixes): Mention this.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS7
1 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index cc2d8f7c..ac785890 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,13 @@ GNU grep NEWS -*- outline -*-
* Noteworthy changes in release ?.? (????-??-??) [?]
+** Bug fixes
+
+ grep -P now reports the troublesome input filename upon PCRE execution
+ failure. Before, searching many files for something rare might fail with
+ just "exceeded PCRE's backtracking limit". Now, it also reports which file
+ triggered the failure.
+
* Noteworthy changes in release 3.5 (2020-09-27) [stable]