From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id c75261cf for ; Wed, 18 Dec 2019 00:24:03 +0000 (UTC) Received: (qmail 6258 invoked by alias); 18 Dec 2019 00:23:55 -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: List-Unsubscribe: X-Seq: 45073 Received: (qmail 21815 invoked by uid 1010); 18 Dec 2019 00:23:55 -0000 X-Qmail-Scanner-Diagnostics: from wout4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25663. spamassassin: 3.4.2. Clear:RC:0(64.147.123.20):SA:0(-2.6/5.0):. Processed in 4.669839 secs); 18 Dec 2019 00:23:55 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddtkedgvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfffgr nhhivghlucfuhhgrhhgrfhdfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmh gvqeenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgr fhdrnhgrmhgvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-689-g5a57b82-fmstable-20191216v1 Mime-Version: 1.0 Message-Id: <2ea6feb3-a686-4d83-ab27-6a582424487c@www.fastmail.com> In-Reply-To: <20191217111113.z242f4g6sx7xdwru@chaz.gmail.com> References: <20191216211013.6opkv5sy4wvp3yn2@chaz.gmail.com> <20191216212706.i3xvf6hn5h3jwkjh@chaz.gmail.com> <20191217073846.4usg2hnsk66bhqvl@chaz.gmail.com> <20191217111113.z242f4g6sx7xdwru@chaz.gmail.com> Date: Wed, 18 Dec 2019 00:22:53 +0000 From: "Daniel Shahaf" To: "Stephane Chazelas" , zsh-workers@zsh.org Subject: =?UTF-8?Q?Re:_[PATCH]_Re:_regexp-replace_and_^,_word_boundary_or_look-be?= =?UTF-8?Q?hind_operators?= Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Stephane Chazelas wrote on Tue, 17 Dec 2019 11:11 +00:00: > +++ b/Doc/Zsh/contrib.yo > @@ -4301,6 +4301,9 @@ and arithmetic expressions which will be=20 > replaced: in particular, a > reference to tt($MATCH) will be replaced by the text matched by the=20= > pattern. > =20 > The return status is 0 if at least one match was performed, else 1. > + > +Note that if not using PCRE, using the tt(^) or word boundary operato= rs > +(where available) may not work properly. Suggest to avoid the double negative: 1. s/not using PCRE/using POSIX ERE's/ 2. Add "(ERE's)" after "POSIX extended regular expressions" in the first= paragraph I'll push a minor change to that first paragraph in a moment. > ) > +++ b/Functions/Example/zpgrep > @@ -2,24 +2,31 @@ > +eval $1=3D\$5 How about =C2=AB: ${(P)1::=3D"$5"}=C2=BB to avoid eval?