mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
20774: fix e.g. "FOO=BAR BAR=FOO echo" failure to unset FOO after finishing.
This commit is contained in:
parent
bac7c055c7
commit
facf0309bb
@ -1,3 +1,8 @@
|
|||||||
|
2005-02-01 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 20774: Src/exec.c: fix e.g. "FOO=BAR BAR=FOO echo" failure to
|
||||||
|
unset FOO after finishing.
|
||||||
|
|
||||||
2005-02-01 Clint Adams <clint@zsh.org>
|
2005-02-01 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* 20773: Completion/Unix/Command/_getconf: additional variables
|
* 20773: Completion/Unix/Command/_getconf: additional variables
|
||||||
|
@ -2554,10 +2554,10 @@ save_params(Estate state, Wordcode pc, LinkList *restore_p, LinkList *remove_p)
|
|||||||
copyparam(tpm, pm, 1);
|
copyparam(tpm, pm, 1);
|
||||||
pm = tpm;
|
pm = tpm;
|
||||||
}
|
}
|
||||||
addlinknode(*remove_p, s);
|
addlinknode(*remove_p, dupstring(s));
|
||||||
addlinknode(*restore_p, pm);
|
addlinknode(*restore_p, pm);
|
||||||
} else
|
} else
|
||||||
addlinknode(*remove_p, s);
|
addlinknode(*remove_p, dupstring(s));
|
||||||
|
|
||||||
pc += (WC_ASSIGN_TYPE(ac) == WC_ASSIGN_SCALAR ?
|
pc += (WC_ASSIGN_TYPE(ac) == WC_ASSIGN_SCALAR ?
|
||||||
3 : WC_ASSIGN_NUM(ac) + 2);
|
3 : WC_ASSIGN_NUM(ac) + 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user