From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11027 invoked by alias); 11 Aug 2017 01:36:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41525 Received: (qmail 10727 invoked by uid 1010); 11 Aug 2017 01:36:55 -0000 X-Qmail-Scanner-Diagnostics: from mx.spodhuis.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(94.142.241.89):SA:0(-2.3/5.0):. Processed in 0.819442 secs); 11 Aug 2017 01:36:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: zsh-workers+phil.pennock@spodhuis.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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; Date: Thu, 10 Aug 2017 21:36:49 -0400 From: Phil Pennock To: zsh-workers@zsh.org Subject: Re: -pcre-match doesn't work since version 5.4.1 Message-ID: <20170811013649.GA95238@tower.spodhuis.org> References: <86221c7e-aa71-28a7-21c2-8ed800090edd@bureaucracy.de> <20170811010701.GA94571@tower.spodhuis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170811010701.GA94571@tower.spodhuis.org> OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/0x4D1E900E14C1CC04.asc [ SWITCHED TO -workers ] On 2017-08-10 at 21:07 -0400, Phil Pennock wrote: > On 2017-08-11 at 00:29 +0200, nimaje+zml@bureaucracy.de 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 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-------------------------