[Bug 229925] [EXP-RUN] Disallow escaping ordinary characters in regex(3)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jun 7 04:33:56 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229925
--- Comment #27 from commit-hook at freebsd.org ---
A commit references this bug:
Author: kevans
Date: Sun Jun 7 04:32:39 UTC 2020
New revision: 361884
URL: https://svnweb.freebsd.org/changeset/base/361884
Log:
sed: attempt to learn about hex escapes (e.g. \x27)
Somewhat predictably, software often wants to use \x27/\x24 among others so
that they can decline worrying about ugly escaping, if said escaping is even
possible. Right now, this software is using these and getting the wrong
results, as we'll interpret those as x27 and x24 respectively. Some examples
of this, when an exp-run was ran, were science/octopus and misc/vifm.
Go ahead and process these at all times. We allow either one or two digits,
and the tests account for both. If extra digits are specified, e.g. \x2727,
then the third and fourth digits are interpreted literally as one might
expect.
PR: 229925
MFC after: 2 weeks
Changes:
head/usr.bin/sed/compile.c
head/usr.bin/sed/tests/sed2_test.sh
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list