Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [bug] Problem with functions -s (string arg) math function & specific input



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.

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



Messages sorted by: Reverse Date, Date, Thread, Author