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: b...@freebsd.org Reporter: m.v...@wanadoo.fr CC: d...@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 on the CC list for the bug.