Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Nov 2017 11:02:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 223524] whatis 'c++' fails with regex error
Message-ID:  <bug-223524-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223524

            Bug ID: 223524
           Summary: whatis 'c++' fails with regex error
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: wosch@FreeBSD.org

The manual page of whatis(1) claims that the search is by default
=E2=80=9Ccase-insensitive substring matching=E2=80=9D

  By default, apropos searches for makewhatis(8) databases in the default
  paths stipulated by man(1) and uses case-insensitive substring matching
  (the =3D operator) over manual names and descriptions=20

  whatis is a synonym for apropos -f.

     -f      Search for all words in expression in manual page names only.
             The search is case insensitive and matches whole words only.  =
In
             this mode, macro keys, comparison operators, and logical
             operators are not available.


But when I tried to search for the term =E2=80=9Cc++=E2=80=9D I get an regc=
omp error:


$ whatis 'c++'
whatis: regcomp /[[:<:]]c++[[:>:]]/: repetition-operator operand invalid
whatis: ignoring trailing c++
usage: whatis [-afk] [-C file] [-M path] [-m path] [-O outkey] [-S arch]
              [-s section] name ...


Quoting the plus character returns zero results:

$ whatis 'c\+\+'
whatis: nothing appropriate


Using a single plus gives some results:

$ whatis 'c+'
c++filt(1) - decode C++ symbols

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



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