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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,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 0ab8afb1 for ; Mon, 19 Aug 2019 10:00:18 +0000 (UTC) Received: (qmail 25348 invoked by alias); 19 Aug 2019 10:00:13 -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: 44692 Received: (qmail 10992 invoked by uid 1010); 19 Aug 2019 10:00:13 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua1-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25545. spamassassin: 3.4.2. Clear:RC:0(209.85.222.44):SA:0(-0.1/5.0):. Processed in 1.763471 secs); 19 Aug 2019 10:00:13 -0000 X-Envelope-From: sgniazdowski@gmail.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.222.44 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ov3hcePrbPmEwTztH+q48D/l7Xfe046KU5yJ0HRR9gs=; b=Sz4eWTN9iBihR/vP1Q3razqrWTRVfeU6sDqBf1T7SaEVmoMV27fDCj2PT4fxv4WuAQ p74xaU04yTetA/Az2N9+N2Xte2jrYBHT2giQtYaCwC+GeduAChYeXWIJTCHeUdTkZRL6 pfIDavVvRns5xrobFZnC+hbXnc3tUQiU9fiRCQtUHLOBLP6h7Qg1KYvqoZUJzzHLvkp4 ZveMDEmykWvc8HsCKacZ/4zx8pFERg7WdMyZ4FUmKyW+IIoXc/V6/GHC1+XhBmf1cMFs eJ61MXaoBQr7gNpqlFesdHI323mse3RG521oJDwAkcmieREvzO0owjyhaSDLRW+vMD7F xOqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ov3hcePrbPmEwTztH+q48D/l7Xfe046KU5yJ0HRR9gs=; b=C/EL7UKkC60Go1nIGNbw/ljBhcRmc/mCu+c6yfqucwqlzB7mW0w9PAvpYKlvJfM3Bd 1B7+7/tt8x9MqgboJb4iO+a0djP1uLYdBJfdNDXRpwhjjm7JrnO+mRe5Mv6iLTkPCoPU zxwD7IHGx3boMWPcFG9iOEi6N9u+MYtm42Ih4episDPRBoyxd2WaD8IIvvMwXfpAK803 +vwJVp2mV6p2q2qLDDHEAHDgZRo5lrD3crIl/2PP7/V5YpWri+ogZ7UK81P8d6ZRO0BA bfHXdFcwiHXsRQheQWRSOeSlgPJr1G6ojsT3HzPB+Lq23YBBSit5TQLF+SxE4j5J2aIb gJ3w== X-Gm-Message-State: APjAAAW8R0tqh0Iubw1bHeM3rjzO1BJJYlw2iunPXejGL8m9dQq9ogXS w6q7fLzt+HeG0XFhkT2QWr9DId5E0Ya2SyuXfS0= X-Google-Smtp-Source: APXvYqzg9GP01cD0XAYFJQJ0b1fJSiVDbmUZHCqGosHaF0WPPbDtEjNgvbjwobl6mM92RKiY0vP3g+8H1XQzibgVfOQ= X-Received: by 2002:ab0:63c3:: with SMTP id i3mr2642180uap.7.1566208778748; Mon, 19 Aug 2019 02:59:38 -0700 (PDT) MIME-Version: 1.0 References: <20190819070143.diqagwrdxx7ayp2m@chaz.gmail.com> In-Reply-To: From: Sebastian Gniazdowski Date: Mon, 19 Aug 2019 11:59:27 +0200 Message-ID: Subject: Re: [bug] Problem with functions -s (string arg) math function & specific input To: Sebastian Gniazdowski , Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Mon, 19 Aug 2019 at 11:53, Sebastian Gniazdowski wrote: > So it seems that ${MATCH//\)/\\\)} should suffice to fix this problem, > as it seems that once a string is within parens (correctly), further > expansions are put on hold for the -s functions. Quoting of ( is also needed. It doesn't error without it, however it then includes the closing paren in the string argument. -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org