summaryrefslogtreecommitdiff
path: root/tests/posix-bracket
diff options
context:
space:
mode:
authorStephane Chazelas <stephane.chazelas@gmail.com>2014-02-24 11:54:09 -0800
committerJim Meyering <meyering@fb.com>2014-02-24 20:47:50 -0800
commitbc4e0307da6fc43b897e7a16c56b36e7f5990832 (patch)
tree34d92223b6e90cab777f83623ad2e6d673e3b677 /tests/posix-bracket
parentedcd281c532d61e5f4cb36f34d6c866c9aec7766 (diff)
downloadgrep-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