Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Dec 2021 07:46:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   =?UTF-8?B?W0J1ZyAyMjM1MjJdIGB3aGF0aXMgLuKAmSByZXR1cm5zIHJhbmRv?= =?UTF-8?B?bSByZXN1bHRz?=
Message-ID:  <bug-223522-227-i2fnY5JQjj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223522-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=223522

Dakotah Lambert <vvulpes0@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vvulpes0@gmail.com

--- Comment #4 from Dakotah Lambert <vvulpes0@gmail.com> ---
apropos (and by extension whatis) uses (case-insensitive, extended) regular
expressions in all instances. In all reported instances, the “.” has matched a
“word” containing a single character, as confirmed by

    $ printf '%s\n' word-to-test | grep -o '\<.\>'

The results are as follows:

    c  c++filt
    w  w
    2  config.guess-2.69
    2  config.sub-2.69
    2  ifname-2.69
    a  a.out
    1  ld-elf.so.1
    2  gittutorial-2

Note also:

    $ whatis '[a]'
    a.out(5) - format of executable binary files

In order to search for a manpage entitled “.” alone, you would search

    $ whatis '[.]'
    whatis: nothing appropriate

To confirm:

    $ whatis . | wc -l
    17
    $ whatis . | grep '\<.\>' | wc -l
    17

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

home | help

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