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/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272729 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 document= ed anywhere. extract from `man man`: -K regexp Does a full text search in all manual pages. regexp is a regu= lar expression as understood by =E2=80=9Cgrep -E=E2=80=9D. This o= ption requires mandoc(1). This is a slow operation. `man grep`: -E, --extended-regexp Interpret pattern as an extended regular expression (i.e., for= ce grep to behave as egrep). `man re_format`: a =E2=80=98\=E2= =80=99 followed by one of the characters =E2=80=98^.[$()|*+?{\=E2=80=99 (matching that ch= aracter taken as an ordinary character), a =E2=80=98\=E2=80=99 followed by any other chara= cter=E2=80=A1 (matching that character taken as an ordinary character, as if the =E2=80=98\=E2= =80=99 had not been present=E2=80=A1),=20 I think the issue comes from the egrep regex format. But I have found nothi= ng into its documentation. --=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-272729-227>