Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Nov 2017 10:46:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 223556] apropos(1) should use regular expression by default for a keyword search
Message-ID:  <bug-223556-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 223556
           Summary: apropos(1) should use regular expression by default
                    for a keyword search
           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

apropos does a keyword search. In the past the keyword was a regular expres=
sion

On FreeBSD 10 you can run:

# search for 'f.*bar'=20
$ apropos 'f.*bar' | wc -l
       4

# or dump the database
apropos '.' | wc -l
    5582


On FreeBSD12-current

$ apropos 'f.*bar' | wc -l
apropos: nothing appropriate
       0

$ apropos '.' | wc -l
     318

To use regular expression, you need to prefix the tilde now:

$ apropos '~f.*bar' | wc -l
       2
apropos '~.' | wc -l
    4488


I do not like this change. We are incompatible with anything before in Free=
BSD,
and we are incompatible with the gnu tools on debian/ubuntu/centos.

--=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-223556-8>