diff options
| author | Peter Stephenson <pws@zsh.org> | 2017-01-23 09:50:57 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2017-01-23 09:50:57 +0000 |
| commit | c861b17bbf002129f29e22ab625fd3516ba792a2 (patch) | |
| tree | d1cd26c6a1f298840fd51fae19a4a25f279ecf10 /Src/options.c | |
| parent | unposted: Etc/BUGS: Record users/20807 vcs_info quilt issue. (diff) | |
| download | zsh-c861b17bbf002129f29e22ab625fd3516ba792a2.tar zsh-c861b17bbf002129f29e22ab625fd3516ba792a2.tar.gz zsh-c861b17bbf002129f29e22ab625fd3516ba792a2.tar.bz2 zsh-c861b17bbf002129f29e22ab625fd3516ba792a2.tar.lz zsh-c861b17bbf002129f29e22ab625fd3516ba792a2.tar.xz zsh-c861b17bbf002129f29e22ab625fd3516ba792a2.tar.zst zsh-c861b17bbf002129f29e22ab625fd3516ba792a2.zip | |
40391: Add WARN_NESTED_VAR option and functions -W.
These are companions to WARN_CREATED_GLOBAL, warning when a variable
from an enclosing scope is altered.
Diffstat (limited to 'Src/options.c')
| -rw-r--r-- | Src/options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/options.c b/Src/options.c index 4729ba54a..e0b67d205 100644 --- a/Src/options.c +++ b/Src/options.c @@ -258,6 +258,7 @@ static struct optname optns[] = { {{NULL, "verbose", 0}, VERBOSE}, {{NULL, "vi", 0}, VIMODE}, {{NULL, "warncreateglobal", OPT_EMULATE}, WARNCREATEGLOBAL}, +{{NULL, "warnnestedvar", OPT_EMULATE}, WARNNESTEDVAR}, {{NULL, "xtrace", 0}, XTRACE}, {{NULL, "zle", OPT_SPECIAL}, USEZLE}, {{NULL, "braceexpand", OPT_ALIAS}, /* ksh/bash */ -IGNOREBRACES}, |
