mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
37168: No WARN_CREATE_GLOBAL on special parameters
This commit is contained in:
parent
72a67716ac
commit
2737ae4a66
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
2015-11-20 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 37168: Src/params.c: no WARN_CREATE_GLOBAL on special parameters.
|
||||
|
||||
* 20974: Src/builtin.c, Test/D04parameter.ztst: fix bug
|
||||
when scalar value assigned to special array in typeset.
|
||||
|
||||
|
|
|
@ -2702,7 +2702,7 @@ check_warn_create(Param pm, const char *pmtype)
|
|||
Funcstack i;
|
||||
const char *name;
|
||||
|
||||
if (pm->level != 0)
|
||||
if (pm->level != 0 || (pm->node.flags & PM_SPECIAL))
|
||||
return;
|
||||
|
||||
name = NULL;
|
||||
|
|
Loading…
Reference in a new issue