From: Michael Orlitzky <mjo@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] search patterns in less(1)
Date: Fri, 19 Jul 2019 11:44:39 -0400 [thread overview]
Message-ID: <9f96d69e-be86-ff65-ea16-33b60d5ec220@gentoo.org> (raw)
In-Reply-To: <06a046c3-9f35-b8ab-7792-d51aa1500324@gentoo.org>
On 7/19/19 11:28 AM, Michael Orlitzky wrote:
> On 7/19/19 2:40 AM, n952162 wrote:
>> The man page says:
>>
>> The pattern is a regular expression, as recognized by
>> the regular expression library supplied by your system
>>
>> There are many regular expression libraries on my system.
>>
>
Actually, the ambiguity in the man page is there for a reason. When you
configure less, you can pass --with-regex=<library> to select an
implementation. You get libpcre with USE=pcre in Gentoo. Without
USE=pcre, I think you get the GNU libc implementation (from grep et al.)
that just coincidentally supports "\b" as well.
There are a few other options for that flag that aren't available in
Gentoo, though, so the man page is being vague out of necessity.
next prev parent reply other threads:[~2019-07-19 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-18 22:40 [gentoo-user] search patterns in less(1) n952162
2019-07-18 20:55 ` Michael Orlitzky
2019-07-19 6:40 ` n952162
2019-07-19 15:28 ` Michael Orlitzky
2019-07-19 15:44 ` Michael Orlitzky [this message]
2019-07-19 16:29 ` [gentoo-user] " Ian Zimmerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9f96d69e-be86-ff65-ea16-33b60d5ec220@gentoo.org \
--to=mjo@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox