Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2018 17:40:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 223524] whatis 'c++' fails with regex error
Message-ID:  <bug-223524-227-NfWblu5dYm@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223524-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223524-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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

Kyle Evans <kevans@freebsd.org> changed:

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

--- Comment #4 from Kyle Evans <kevans@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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223524-227-NfWblu5dYm>