diff options
author | Stephane Chazelas <stephane.chazelas@gmail.com> | 2014-02-24 11:54:09 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-02-24 20:47:50 -0800 |
commit | bc4e0307da6fc43b897e7a16c56b36e7f5990832 (patch) | |
tree | 34d92223b6e90cab777f83623ad2e6d673e3b677 /tests/posix-bracket | |
parent | edcd281c532d61e5f4cb36f34d6c866c9aec7766 (diff) | |
download | grep-bc4e0307da6fc43b897e7a16c56b36e7f5990832.tar.gz |
grep -P: fix it so backreferences now work with -w and -x
To implement -w and -x, we bracket the search term with parentheses.
However, that set of parentheses had the default semantics of
"capturing", i.e., creating a backreferenceable matched quantity.
Instead, use (?:...), to create a non-capturing group.
* src/pcresearch.c (Pcompile): Use (?:...) rather than (...).
* NEWS (Bug fixes): Mention it.
* tests/pcre-wx-backref: New file.
* tests/Makefile.am (TESTS): Add it.
This addresses http://debbugs.gnu.org/16865
Diffstat (limited to 'tests/posix-bracket')
0 files changed, 0 insertions, 0 deletions