From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9720 invoked by alias); 3 Apr 2017 18:00:23 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22654 Received: (qmail 3311 invoked from network); 3 Apr 2017 18:00:23 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f41.google.com 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(209.85.213.41):SA:0(0.5/5.0):. Processed in 0.966182 secs); 03 Apr 2017 18:00:23 -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=0.5 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,SPF_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.213.41 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=dikAz6SPgPn5yKh6rLMe0iaonwV7zXsm8ItmSBcY450=; b=YYkHkFeK1AF+B0omQ1FMzbnmN5tydcq+uvmcJRCzb/rJ7dyxcChxQF3MZoExbCudFE zQMrCmWgUXWjnOk+sq+8p5QlOpki3MbXapp8frTWHaWjpft3PpYDciv/G1hfSz3KrZLW Q0aHc0MQsHU4mNIcirfyf6bnf8gnirDb+7wPfWTsmDpu2+YP8RbCinvYRjCan/vk+5K9 CZMs2IuqfDTtFSUYzg/uZ8GTBRAdTy4uVc9eNU1+cnDYmj6eNyDHk9cMdsbgzWoURORw qorxr2JewnYamwM3Oj4IqPODSm8mUec2Z6yUO1T1uaH1So9DFMscxpIl1TZeyTmCV/t/ THCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=dikAz6SPgPn5yKh6rLMe0iaonwV7zXsm8ItmSBcY450=; b=QfeGHhD5ae18QrIUoopcSrCVCu0BhhTPr+7tmuxIkDvDHlm8D/SNyHrArxzHyA8TCO tOzVuQntKS4+v6Hp79QBVKguN8WwcKZoT8wOXd1dsRUIHozvFvnkuBGOvfSolZ/cJDa8 22Zf3f3YKlxPPG3Wv784FFHS8qko7d7kVAF/kWeYM15MCDddb3jRfxv96ft4ncn2aQvx 4BJUx1bRETFwzPXO8KqYqD4SC4qrCHQzHDEncNuBaiPYNI3Hjip0Y6DUkI0Ui86UQCjd Ww5mVEczTBdbUedVz+uankvOFbFh1Bb3Wjryh5XYpE+GbJGB9+0CtCJi32WoJ5KBYSsz FgxQ== X-Gm-Message-State: AFeK/H2uklaTxtcBSMk/Qwz6ErfvwoVWKFZXlqAZ15+5pFrg2GU/kmr/yMhHGd83xdTC1g== X-Received: by 10.31.152.17 with SMTP id a17mr8183731vke.97.1491242412018; Mon, 03 Apr 2017 11:00:12 -0700 (PDT) From: Bart Schaefer Message-Id: <170403110016.ZM12756@torch.brasslantern.com> Date: Mon, 3 Apr 2017 11:00:16 -0700 In-Reply-To: <20170403112611.GA4333@fujitsu.shahaf.local2> Comments: In reply to Daniel Shahaf "Re: REMATCH_PCRE with zsh built without pcre support" (Apr 3, 11:26am) References: <27c2026c-f760-32b0-e0d5-8c6909346979@gmx.com> <170401145348.ZM30308@torch.brasslantern.com> <20170403011159.GA64116@tower.spodhuis.org> <20170403112611.GA4333@fujitsu.shahaf.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: REMATCH_PCRE with zsh built without pcre support MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 3, 11:26am, Daniel Shahaf wrote: } } I agree that semantics of operators shouldn't depend on option I'm not even particularly worried about semantic dependency; the gripe here is that "setopt re_match_pcre" does not succeed (or fail) based on the presence (or absence) of the module. Exactly how big a problem is that? If you are relying on =~ having perl semantics, you ought to be calling "zmodload zsh/pcre" anyway, and not just expecting setopt to do that for you. On the other hand if others think it's a major shortcoming that setopt does not hard fail when the option won't actually have a useful effect, then we should use a different paradigm than setopt here; yes it would be possible for setopt to barf with "can't change option: rematchpcre" but that means a module-specific special case that no other setopt has. And now I've repeated myself at least three times so I'll stop. } > [...] the zsh/regex module would have to become part of the default } > static build, which might have licensing consequences. } } What would those be? zsh/regex is BSD licensed. I don't know, and don't have time to figure it out.