zsh-workers
 help / color / mirror / code / Atom feed
* [bug] Problem with functions -s (string arg) math function & specific input
@ 2019-08-19  1:00 Sebastian Gniazdowski
  2019-08-19  1:18 ` Bart Schaefer
  2019-08-19  7:01 ` Stephane Chazelas
  0 siblings, 2 replies; 7+ messages in thread
From: Sebastian Gniazdowski @ 2019-08-19  1:00 UTC (permalink / raw)
  To: Zsh hackers list

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-08-19 13:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-19  1:00 [bug] Problem with functions -s (string arg) math function & specific input 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
2019-08-19 13:29       ` Stephane Chazelas

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