From: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
To: zsh-workers@zsh.org
Subject: Re: -pcre-match doesn't work since version 5.4.1
Date: Thu, 10 Aug 2017 21:36:49 -0400 [thread overview]
Message-ID: <20170811013649.GA95238@tower.spodhuis.org> (raw)
In-Reply-To: <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@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 <pws@zsh.org>
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-------------------------
next parent reply other threads:[~2017-08-11 1:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <86221c7e-aa71-28a7-21c2-8ed800090edd@bureaucracy.de>
[not found] ` <20170811010701.GA94571@tower.spodhuis.org>
2017-08-11 1:36 ` Phil Pennock [this message]
2017-08-11 1:49 ` Bart Schaefer
2017-08-11 2:02 ` [PATCH] repair conds where - within cond name Phil Pennock
2017-08-11 8:31 ` Peter Stephenson
2017-08-11 17:18 ` Phil Pennock
2017-08-11 18:45 ` Daniel Shahaf
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=20170811013649.GA95238@tower.spodhuis.org \
--to=zsh-workers+phil.pennock@spodhuis.org \
--cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).