[Bug 272729] space character in -K option regex
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272729] space character in `man -K` option's regex"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272729] space character in `man -K` option's regex"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272729] space character in `man -K` option's regex"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272729] space character in `man -K` option's regex"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272729] space character in `man -K` option's regex"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272729] space character in `man -K` option's regex"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 272729] space character in `man -K` option's regex"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jul 2023 08:31:44 UTC
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.