summaryrefslogtreecommitdiff
path: root/doc/grep.texi
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-11-19 00:25:46 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-11-19 00:35:29 -0800
commit641643e609c7cd4fd2898b3423d3c7ad3106f2e4 (patch)
tree46b8debf06089d0d5c0251d6bf51100db15b87d1 /doc/grep.texi
parent1569ee170b8eb3e5a03ca3d7d53e71fd05fd08e5 (diff)
downloadgrep-641643e609c7cd4fd2898b3423d3c7ad3106f2e4.tar.gz
grep: -Pz no longer rejects ^, $
Problem reported by Stephane Chazelas (Bug#22655). * NEWS: Document this. * doc/grep.texi (grep Programs): Warn about -Pz. * src/pcresearch.c (reflags): New static var. (multibyte_locale): Remove static var; now local to Pcompile. (Pcompile): Check for (? and (* too. Set reflags instead of dying when problematic operators are found. (Pexecute): Use reflags to decide whether searches should be multiline. * tests/pcre: Test new behavior.
Diffstat (limited to 'doc/grep.texi')
-rw-r--r--doc/grep.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/grep.texi b/doc/grep.texi
index fcfad42e..ac821b47 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -1125,8 +1125,10 @@ expressions), separated by newlines, any of which is to be matched.
@opindex --perl-regexp
@cindex matching Perl-compatible regular expressions
Interpret the pattern as a Perl-compatible regular expression (PCRE).
-This is highly experimental and
+This is highly experimental, particularly when combined with the
+the @option{-z} (@option{--null-data}) option, and
@samp{grep@ -P} may warn of unimplemented features.
+@xref{Other Options}.
@end table