From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>,
Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [bug] Problem with functions -s (string arg) math function & specific input
Date: Mon, 19 Aug 2019 11:59:27 +0200 [thread overview]
Message-ID: <CAKc7PVCN2Li+uqxMa+ho4K+tkE_5_RBairYFxT-FXi4bYRUr3g@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVCfe9TTs4sUtr-K-rwmj2FnPLe90bZofyE1RRq0ONxMQA@mail.gmail.com>
On Mon, 19 Aug 2019 at 11:53, Sebastian Gniazdowski
<sgniazdowski@gmail.com> 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
next prev parent reply other threads:[~2019-08-19 10:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-19 1:00 Sebastian Gniazdowski
2019-08-19 1:18 ` Bart Schaefer
2019-08-19 1:55 ` Sebastian Gniazdowski
2019-08-19 7:01 ` Stephane Chazelas
2019-08-19 9:53 ` Sebastian Gniazdowski
2019-08-19 9:59 ` Sebastian Gniazdowski [this message]
2019-08-19 13:29 ` Stephane Chazelas
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=CAKc7PVCN2Li+uqxMa+ho4K+tkE_5_RBairYFxT-FXi4bYRUr3g@mail.gmail.com \
--to=sgniazdowski@gmail.com \
--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).