summaryrefslogtreecommitdiff
path: root/tests/pcre
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-03-23 09:01:04 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-03-23 09:01:28 -0700
commitd97cfd43d091662065482a8b72f17e25e296d15b (patch)
treea4a1070fe04728e080b66319a1d6cf5f29709e00 /tests/pcre
parent1a722665d86195f2702ae3da256a4dedb894b38c (diff)
downloadgrep-d97cfd43d091662065482a8b72f17e25e296d15b.tar.gz
grep: -Pz no longer misdiagnoses [^a]
Problem reported by Michael Jess. * NEWS: Document this. * src/pcresearch.c (Pcompile): Do not diagnose [^ when [ is unescaped. * tests/pcre: Test for the bug.
Diffstat (limited to 'tests/pcre')
-rwxr-xr-xtests/pcre1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/pcre b/tests/pcre
index b8b46624..8f3d9a48 100755
--- a/tests/pcre
+++ b/tests/pcre
@@ -15,5 +15,6 @@ fail=0
echo | grep -P '\s*$' || fail=1
echo | returns_ 2 grep -zP '\s$' || fail=1
echo '.ab' | returns_ 1 grep -Pwx ab || fail=1
+echo x | grep -Pz '[^a]' || fail=1
Exit $fail