public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Zac Medico <zmedico@gentoo.org>
To: "Michał Górny" <mgorny@gentoo.org>, gentoo-portage-dev@lists.gentoo.org
Cc: Zac Medico <zmedico@gentoo.org>
Subject: Re: [gentoo-portage-dev] [PATCH v2] emerge --search: auto-detect regular expressions (bug 737480)
Date: Tue, 1 Sep 2020 23:42:32 -0700	[thread overview]
Message-ID: <cd1f149f-53b7-6da7-92a4-74e7fa34c812@gentoo.org> (raw)
In-Reply-To: <72f9f418582168587667a6dc05528618f2307901.camel@gentoo.org>


[-- Attachment #1.1: Type: text/plain, Size: 546 bytes --]

On 9/1/20 11:08 PM, Michał Górny wrote:
> On Tue, 2020-09-01 at 19:59 -0700, Zac Medico wrote:
>> Automatically detect regular expressions when the search string
>> contains any of these regular expression characters or character
>> sequences:
>>
>>   ^ $ * [ ] { } | ? .+
> 
> Isn't this going to break search for gtk+?

It matches the literal sequence '.+', so a 'gtk+' search string
will not trigger it. Since '.' is not allowed in package names,
it shouldn't be very useful except for regular expressions.
-- 
Thanks,
Zac


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

      parent reply	other threads:[~2020-09-02  6:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-01  4:26 [gentoo-portage-dev] [PATCH] emerge --search: auto-detect regular expressions (bug 737480) Zac Medico
2020-09-02  2:59 ` [gentoo-portage-dev] [PATCH v2] " Zac Medico
2020-09-02  6:08   ` Michał Górny
2020-09-02  6:40     ` Zac Medico
2020-09-02  6:42     ` Zac Medico [this message]

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=cd1f149f-53b7-6da7-92a4-74e7fa34c812@gentoo.org \
    --to=zmedico@gentoo.org \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    --cc=mgorny@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