zsh-workers
 help / color / mirror / code / Atom feed
From: Roland Eggner <edvz2@systemanalysen.net>
To: zsh-workers@zsh.org
Subject: Re: Another minor =~ glitch
Date: Sat, 8 Apr 2017 03:58:30 +0200	[thread overview]
Message-ID: <2017-04-08_03.58.46@mobil.systemanalysen.net> (raw)
In-Reply-To: <170407103320.ZM27783@torch.brasslantern.com>

On 2017-04-07 Fr 10:33:20-0700, Bart Schaefer wrote:
> torch% set -x
> torch% [[ foo =~ .* ]]
> +Src/zsh:2> [[ foo -regex-match .* ]]
> torch% [[ foo -regex-match .* ]]
> +Src/zsh:3> [[zsh: unknown condition: -regex-match
>  ]]
> torch% 

Regression observed since my Zsh update
from bb6c08b51a079870 to fc1fedda954e1d10.

Similarly using operator “-pcre-match” fails,
using operator “=~” instead works around:

syst% zmodload zsh/pcre
syst% zmodload -F -l zsh/pcre
+b:pcre_compile
+b:pcre_match
+b:pcre_study
+C:pcre-match
syst% setopt RE_MATCH_PCRE XTRACE
syst% [[ "A" -pcre-match "(?i)a" ]]
[[zsh: unknown condition: -pcre-match
 ]]
syst% [[ "A" =~ "(?i)a" ]]  && print y
[[ "A" -pcre-match "(?i)a" ]]
print y
y
syst%



-- 
Roland Eggner


  reply	other threads:[~2017-04-08  2:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-07 17:33 Bart Schaefer
2017-04-08  1:58 ` Roland Eggner [this message]
2017-04-08  5:23   ` Bart Schaefer
2017-06-14  4:45     ` Mikael Magnusson
2017-06-14  4:49       ` Mikael Magnusson
2017-06-19 10:06       ` PATCH: dupstring a possibly readonly string before modifying Mikael Magnusson

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=2017-04-08_03.58.46@mobil.systemanalysen.net \
    --to=edvz2@systemanalysen.net \
    --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).