From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13973 invoked from network); 2 Feb 2023 08:32:46 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Feb 2023 08:32:46 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1675326766; b=BYpSu2PxbYZt38srr6ErJODZbBvvO55HFbPafsdApjXs7uKY4VDonQ/zRdpUozl2QVDwBWjVef FfItFGWb9IAIZo8Bc7CwIf/aGVC3nbfW+UntMpD9XpIgoXfZ4oJ7C35MC/rjVw4F2zO5TkrBti lxPgtVv1dUiaL0MCY/ldJrZLqqGx5laOSBtBb+eK8ZS4tfscBHoSirGmSGnmfNKtImzmTKWYTj 6vFOYRSazTCZiCwOgxiWwNbj+EqRvj8LX6HcidiPjEOGpdSOCa/8n3sz4EJ8gzWe7goA9X0Orz T4EGzxpwisORT/ADyQA0M5kKyiZWPa+27AvI09g0tffeRw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f54.google.com) smtp.remote-ip=209.85.167.54; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1675326766; bh=1d7MeAg94yZy9/U8CbmJHBSHCKcQqRHi3+TLfY6b6To=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=psr9HpHAyC33VYmMJM4TqwcSMUB1rUq9VA9w+qgph/alDQ2AdtC/BQB3NFDgr2re2BugKyR5qr YMRpM5nVZaeJsnmaPybFmo9Urr3JJbWX5O0S9EtXCG6Hu3Vpqrh7lyVOqmd+fq/d5rQhj5cvsF bNcW38EyzLHJC2GB17VoIs+l0wtCN4j6igMNNOYtdZa19tEt0TTy/B1kK0gUEQz7iq9mTyWOrX 8cPPSpsBUPsLf8DKvM6yxC2ZowSSxLEotnu3nuSdfaTI7snsp1Q+0FwmQhHDz7wE+l5TE69ne7 gVulRtBL49ItFOo1NMOHGIN8p6ULPOlHl5auFfrnyLc1Uw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=1d7MeAg94yZy9/U8CbmJHBSHCKcQqRHi3+TLfY6b6To=; b=D5/ZTOMzrwNuAf+EoHAOEmqJxM rkFbm3inDEItY5OINshhFvXZ74p565u/TStSxUVlqJjf0BzvUV3LDL1GaogvAxD/lvFHITWh9puP3 OqSlNpZU4GbA7VqCRMOikNx5nXlCN67i5aYLLPTi0fxrszvjh2S3jusKLUDwWZENaP2RztpPlZi2U f78CYS0m8o4ElTx4xGmqGWqL+Wi5g3q3bTOsauniL2VCCvUakfuZ170ovl5q+4zlKgHoEhid32hZJ XqFp9VlJhcA/VN1hvloqWZ8QAJdgqQNW7yf96WfTqGsExjcJRZSEl06Yk9FF7J2yyDHGIbrL318mB gPkHqshw==; Received: by zero.zsh.org with local id 1pNV1R-000BBz-8q; Thu, 02 Feb 2023 08:32:45 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f54.google.com) smtp.remote-ip=209.85.167.54; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f54.google.com ([209.85.167.54]:45791) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pNV0s-000Ark-MJ; Thu, 02 Feb 2023 08:32:11 +0000 Received: by mail-lf1-f54.google.com with SMTP id x40so1837921lfu.12 for ; Thu, 02 Feb 2023 00:32:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=1d7MeAg94yZy9/U8CbmJHBSHCKcQqRHi3+TLfY6b6To=; b=Sw3MH5nLTz+ovKzyerp0/Vrk2gRaDN0OYarJ52Maoq85X9sfr/qSr3657Zg4OpHb2G Zc9NeZNEGidck77BwJsW+cvIjFn0cRuesRJKX3HFvsXzOUOHnBY0KweUcDYKhTpxBC5K 7TpzKanBV6KRaPf7vfBxBakF9Y8ETjOzFMbs7YUajWDWlMoY22GPC5G+N4RuCu322U4O T2kU8uWKReta0AH53iZl92bhjPYEjJVUbTn9M/FvbZIvtE1RCsqTZzUIFcuE9F/ucwc3 +iV0ZqWcRB0VO+OPrszHxVA7+EdCxmOn8nZ8prpmNFyREHlokGo3zxmKWxnrJyRPTOu1 LrQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1d7MeAg94yZy9/U8CbmJHBSHCKcQqRHi3+TLfY6b6To=; b=49XBRB7XZNVJVVFGvuHR4ebizZ05FGgYOAx8ZLWpP5lebwZHzD8EocbVCdHoxOJp9H rvvfVrZDTW70uyWzn1Cy66FZ31U5jgJblkUVBnD5kexfTZPP5jSrsfVQhimTQyRSsYfc uacE4kDLuqksHxVckvfDbTdL63awPAk0Ien/pVQW2s6xhTXv2PfEQU0QjZl+pBqI6gM8 iwYerDzhQW6CwaYPogENDlPs2X/FcMUp1X/OVc3drvU/AlUzAzkEIAyGkag1IKmhxF1x rRSEZGQ9H3utX6vqHMohyAbYSdsWvNVnVf9EzaLasmWDYhp+m6jtFHpQjcHkBrMlsbLS k7+g== X-Gm-Message-State: AO0yUKXF+PEbxWu1r0PS/3FbVYDFAUD8w8BUcaXDdQkJ0DtleAWDs1cw 5MFfbp9O2087poIsY6Pu07uT/m4sS34vs9re/zB04t9z X-Google-Smtp-Source: AK7set9qhh623U3qlruPtwdgnxAjxP2ekt9AFar3htcfPE1foD2Tx3jYMFW6D+hNOnW3eB84k2WCoWW0TMOuWSGMoSk= X-Received: by 2002:a05:6512:3488:b0:4d2:c09:24bc with SMTP id v8-20020a056512348800b004d20c0924bcmr762648lfr.103.1675326729546; Thu, 02 Feb 2023 00:32:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Thu, 2 Feb 2023 08:31:43 +0000 Message-ID: Subject: Re: #% anchoring doesn't work with (S) To: Zsh hackers list Content-Type: multipart/alternative; boundary="00000000000098f08f05f3b366e5" X-Seq: 51344 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: --00000000000098f08f05f3b366e5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Could the bug be fixed? It already makes #% pretty much unusable for a backward compatible software, yet in say 4 years this would be changed, if the bug would be fixed today On Mon, 30 Jan 2023 at 12:32, Sebastian Gniazdowski wrote: > INPUT=3DABC; INPUT=3D${(S)INPUT//#%((#b)(*))/=C2=B0match=C2=B0}; print $m= atch > #no output > > # Try to quote # > INPUT=3DABC; INPUT=3D${(S)INPUT//\#\%((#b)(*))/=C2=B0match=C2=B0}; print = $match > #no output > > # Anchor with (#s)/(#e) instead: > INPUT=3DABC; INPUT=3D${(S)INPUT//(#s)((#b)(*))(#e)/=C2=B0match=C2=B0}; pr= int $match > #ouput correct: > ABC > > # No S-flag > INPUT=3DABC; INPUT=3D${INPUT//#%((#b)(*))/=C2=B0match=C2=B0}; print $matc= h > #output correct > ABC > > BTW, what were the rules of (#b) flag activity (or (#B))? It was somethin= g > about "till the end of the parens". > > > > -- > Best regards, > Sebastian Gniazdowski > > --=20 Best regards, Sebastian Gniazdowski --00000000000098f08f05f3b366e5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Could the bug be fixed? It already makes #% pretty mu= ch unusable for a backward compatible software, yet in say 4 years this wou= ld be changed, if the bug would be fixed today


On Mon, 30 Jan = 2023 at 12:32, Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
= INPUT=3DABC; INPUT=3D${(S)INPUT//#%((#b)(*))/=C2=B0match=C2=B0}; print $mat= ch
#no output

# Try to quote #
INPUT=3DABC; INPUT=3D${(S)INPUT/= /\#\%((#b)(*))/=C2=B0match=C2=B0}; print $match
#no= output

# Anchor with (#s)/(#e) instead:=
INPUT=3DABC; INPUT=3D${(S)INPUT//(#s)((#b)(*))(#e)/=C2=B0match=C2=B0}= ; print $match
#ouput correct:
ABC
<= br>
# No S-flag
INPUT=3DABC; INPUT=3D${INPUT//#%((= #b)(*))/=C2=B0match=C2=B0}; print $match
#output correct
=
ABC

BTW, what were the rules of= (#b) flag activity (or (#B))? It was something about "till the end of= the parens".



--
Best regards,
Sebastian G= niazdowski



--
Best regards,
Sebastian Gniazdowski
--00000000000098f08f05f3b366e5--