Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $match size limit, suspicious (#B) behavior
- X-seq: zsh-workers 39666
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: $match size limit, suspicious (#B) behavior
- Date: Mon, 17 Oct 2016 08:00:01 -0700
- Cc: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JoKOihWaeA4KTO1TvJifOAZGfKmH7phk7O4Yspp9HLg=; b=o3pBNBaEwDrNEY8z313MBGh12Mfs0rRizVPvNyrboRwoTwuy910ARnkFISW+sIsRrr laNYuQtXD9HDoCDxPoq5+ZuPmXYmQ6rSyGx4vUNoWczrTDaYa5I390zcGE0RPvsKMxLa gmhIdDqXPpP8tWfZEBSPq9d3ZX/KLaPyyei7Z5oe/91+Y6zX+k+VcKWfqjXhsX/V0tEs k1oSW71SMloe6xeg91MzkX9azlsRqqIR54CBVN+vkpYvlc7poWVxBrLVtFIJ4UlQ0Jod Z0NJDSnzJYNK0inacrUVUeT6+zBlXVVSBwys4X0U+euH8MtH5G2xsGr09lgVzT/wSq3h vxtw==
- In-reply-to: <CAH+w=7Y76tDV+ubX-=VhAoP9E86kNcqZ4D8zs9AsyCaJzQQMRw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCt1BOU1_M_3AaRgnVDihKemJE0OQMmqY33BZXOhq0xEQ@mail.gmail.com> <CAH+w=7Y76tDV+ubX-=VhAoP9E86kNcqZ4D8zs9AsyCaJzQQMRw@mail.gmail.com>
One other thing ...
On Mon, Oct 17, 2016 at 7:51 AM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> [Sebastian Cc'd in case the list is still having indigestion over gmail MTAs]
>
> If I add another set of parens around everything that follows (#B) up
> to just before the close of the paren that opens before (#B), it looks
> like what I expect:
>
> % [[ 12345 = (#b)(?)((#B)((?)|([[:alnum:]](#c0,1))(?)))(#b)(*) ]]
> % print -l :$^match
> :1
> :2
> :345
With (p1|p2) zsh always matches left-to-right, not longest. So
reversing the order of the alternate subexpressions:
% [[ 12345 = (#b)(?)((#B)(([[:alnum:]](#c0,1))(?)|(?)))(#b)(*) ]]
% print -l :$^match
:1
:23
:45
Messages sorted by:
Reverse Date,
Date,
Thread,
Author