Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jul 2023 08:31:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 272729] space character in -K option regex
Message-ID:  <bug-272729-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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

            Bug ID: 272729
           Summary: space character in -K option regex
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: m.viey@wanadoo.fr
                CC: doc@FreeBSD.org

When searching man page with `man -K` I need to escape space character with
`\s`.

I looked into ma, egrep and re_format man page, this format is not documented
anywhere.

extract from `man man`:

     -K regexp
             Does a full text search in all manual pages.  regexp is a regular
             expression as understood by “grep -E”.  This option requires
             mandoc(1).  This is a slow operation.

`man grep`:

     -E, --extended-regexp
             Interpret pattern as an extended regular expression (i.e., force
             grep to behave as egrep).


`man re_format`:

                                                          a ‘\’ followed by
     one of the characters ‘^.[$()|*+?{\’ (matching that character taken as an
     ordinary character), a ‘\’ followed by any other character‡ (matching
     that character taken as an ordinary character, as if the ‘\’ had not been
     present‡), 


I think the issue comes from the egrep regex format. But I have found nothing
into its documentation.

-- 
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-272729-227>