Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [bug] Problem with functions -s (string arg) math function & specific input
2019-08-19 11:59:27 +0200, Sebastian Gniazdowski:
> On Mon, 19 Aug 2019 at 11:53, Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> 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.
[...]
It appears so. Or more exactly, you'd need to escape any
unmatched unescaped ( or ). (input='()' is fine).
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author