diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-03-23 09:01:04 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-03-23 09:01:28 -0700 |
commit | d97cfd43d091662065482a8b72f17e25e296d15b (patch) | |
tree | a4a1070fe04728e080b66319a1d6cf5f29709e00 /tests/pcre | |
parent | 1a722665d86195f2702ae3da256a4dedb894b38c (diff) | |
download | grep-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-x | tests/pcre | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |