diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-09-26 01:59:48 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-09-27 23:52:25 +0000 |
commit | 2654cb43f63349cff06b3dd26932dd76f53aed4c (patch) | |
tree | f08b52ed36e794ef7d8a42fca75a48ea2d2ebd32 /Test/E01options.ztst | |
parent | 36abe20c0f53015b816d5f3bdd1eeed713614233 (diff) | |
download | zsh-2654cb43f63349cff06b3dd26932dd76f53aed4c.tar.gz zsh-2654cb43f63349cff06b3dd26932dd76f53aed4c.tar.xz zsh-2654cb43f63349cff06b3dd26932dd76f53aed4c.zip |
36651: WARN_CREATE_GLOBAL += math expressions
Without this, '() { (( x=42 )) }' and '() { for (( i=0; … )) }' wouldn't warn about $x and $i, respectively, being created global.
Diffstat (limited to 'Test/E01options.ztst')
-rw-r--r-- | Test/E01options.ztst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst index 2b91b21fa..1caee8d24 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -1110,11 +1110,15 @@ foo3=bar6 } foo4=bar7 =true + (( foo5=8 )) + integer foo6=9 + (( foo6=10 )) } fn 0:WARN_CREATE_GLOBAL option ?fn:3: scalar parameter foo1 created globally in function ?fn:5: scalar parameter foo1 created globally in function +?fn:15: math parameter foo5 created globally in function fn # This really just tests if XTRACE is egregiously broken. # To test it properly would need a full set of its own. |