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

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



Hello,
the contents of the string argument seems to be evaluated in some way
(while it shouldn't). Reproducing snippet:

mtest() { print ${#1}; }
functions -s -M mtest 1 1 mtest
input=') &>/dev/null'
(( mtest($input) ))

Output:
0
zsh: bad math expression: operand expected at `>/dev/null...'

-- 
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