about summary refs log tree commit diff
path: root/Doc/Zsh/options.yo
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-09-26 01:59:48 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-09-27 23:52:25 +0000
commit2654cb43f63349cff06b3dd26932dd76f53aed4c (patch)
treef08b52ed36e794ef7d8a42fca75a48ea2d2ebd32 /Doc/Zsh/options.yo
parent36abe20c0f53015b816d5f3bdd1eeed713614233 (diff)
downloadzsh-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 'Doc/Zsh/options.yo')
-rw-r--r--Doc/Zsh/options.yo3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index abd0f8715..fbf65abbc 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -746,7 +746,8 @@ pindex(NOWARNCREATEGLOBAL)
 cindex(parameters, warning when created globally)
 item(tt(WARN_CREATE_GLOBAL))(
 Print a warning message when a global parameter is created in a function
-by an assignment.  This often indicates that a parameter has not been
+by an assignment or in math context.
+This often indicates that a parameter has not been
 declared local when it should have been.  Parameters explicitly declared
 global from within a function using tt(typeset -g) do not cause a warning.
 Note that there is no warning when a local parameter is assigned to in