Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: -pcre-match doesn't work since version 5.4.1
- X-seq: zsh-workers 41525
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: -pcre-match doesn't work since version 5.4.1
- Date: Thu, 10 Aug 2017 21:36:49 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201708; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZiyC2Nxto7Tmrp6OrrpPN9+GWudKY+n9db0NJ1bDcV4=; b=OpfBiEuBqYZFGicJXJwae2L3ln vc1JgNYFDkcYhs4c0pC5W6PpovcmL1xIJH5s+kD0KS7oo2RuZYMsPSTtTPoxRZQXpucWPCgvf5jyZ qKDGZMk0OgYbPlQeKaD9TVv2mS4XdvzXS952LRoX3BTfVw1CPS0IOau+1FDUs6/itj5vCebsSh3ez 27/jAcdwY556lc+YBnHfJwSJjFRl;
- In-reply-to: <20170811010701.GA94571@tower.spodhuis.org>
- 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
- Openpgp: url=https://www.security.spodhuis.org/PGP/keys/0x4D1E900E14C1CC04.asc
- References: <86221c7e-aa71-28a7-21c2-8ed800090edd@bureaucracy.de> <20170811010701.GA94571@tower.spodhuis.org>
[ SWITCHED TO -workers ]
On 2017-08-10 at 21:07 -0400, Phil Pennock wrote:
> On 2017-08-11 at 00:29 +0200, nimaje+zml@xxxxxxxxxxxxxx wrote:
> > after upgrading to version 5.4.1 I noticed that using -pcre-match doesn't
> > work
> >
> > % zmodload zsh/pcre; [[ 'dxd' -pcre-match ^d+$ ]]
> >
> > zsh: unknown condition: -pcre-match
>
> I see this too; none of the loadable infix operators seem to be working,
> so it's not specific to the PCRE module. -regex-match doesn't work
> either.
No fix yet, still investigating the commit which broke.
With a git bisect script (below) and:
git bisect start HEAD zsh-5.3.1 --
git bisect run ../bisect-script
git spits out that:
------------------------8< git bisect result >8-------------------------
f3f8537cfa05414ad14494e809d9ebfeef86ebbc is the first bad commit
commit f3f8537cfa05414ad14494e809d9ebfeef86ebbc
Author: Peter Stephenson <pws@xxxxxxx>
Date: Tue Mar 7 10:43:58 2017 +0000
40760: Always tokenize unquoted - to Dash.
This fixes use of pattern match character ranges in unusual contexts.
Attempt to detect a tokenized - in cases where we don't care.
------------------------8< git bisect result >8-------------------------
-------------------------8< ../bisect-script >8-------------------------
#!/bin/sh -eu
make
ln -nsf . Src/Modules/zsh
./Src/zsh -fc '
module_path=( /Users/pdp/src/zsh/code/Src/Modules )
zmodload zsh/pcre
[[ foo -pcre-match ^f..$ ]]
'
-------------------------8< ../bisect-script >8-------------------------
Messages sorted by:
Reverse Date,
Date,
Thread,
Author