[Bug 223524] whatis 'c++' fails with regex error

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 10 17:40:49 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223524

Kyle Evans <kevans at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kevans at freebsd.org

--- Comment #4 from Kyle Evans <kevans at freebsd.org> ---
Hi,

I'll take a look at fixing this in the upcoming weeks. The branch at [1] is
inherently wrong; they can't just take a string and stuff it into an ERE like
that and hope it works-- one needs to escape any special characters to make
them ordinary, and the user shouldn't be expected to do this manually.

The behavior from stable/10 is technically wrong, but yields the correct result
by coincidence because gnuregex allows 'c++', though it has a different meaning
than expected. I think we can come up with a reasonable compromise that still
does exactly what you expect it to do.

[1]
https://svnweb.freebsd.org/base/head/contrib/mdocml/mansearch.c?revision=324362&view=markup#l754

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list