mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-22 00:21:27 +01:00
users/12632: bug unexporting special after being set for funccall
This commit is contained in:
parent
043fb29bc4
commit
9fffc58ccf
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-02-21 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* users/12632: Src/exec.c: bug unexporting special parameter
|
||||
after "SPECIAL=stuff funccall".
|
||||
|
||||
2008-02-19 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 24572: Doc/Zsh/calsys.yo, Functions/Calendar/calendar_add:
|
||||
|
|
|
@ -3113,6 +3113,8 @@ restore_params(LinkList restorelist, LinkList removelist)
|
|||
DPUTS(!tpm || PM_TYPE(pm->node.flags) != PM_TYPE(tpm->node.flags) ||
|
||||
!(pm->node.flags & PM_SPECIAL),
|
||||
"BUG: in restoring special parameters");
|
||||
if (!pm->env && tpm->env)
|
||||
delenv(tpm);
|
||||
tpm->node.flags = pm->node.flags;
|
||||
switch (PM_TYPE(pm->node.flags)) {
|
||||
case PM_SCALAR:
|
||||
|
|
Loading…
Reference in a new issue