1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

20774: fix e.g. "FOO=BAR BAR=FOO echo" failure to unset FOO after finishing.

This commit is contained in:
Bart Schaefer 2005-02-02 04:51:13 +00:00
parent bac7c055c7
commit facf0309bb
2 changed files with 7 additions and 2 deletions

@ -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>
* 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);
pm = tpm;
}
addlinknode(*remove_p, s);
addlinknode(*remove_p, dupstring(s));
addlinknode(*restore_p, pm);
} else
addlinknode(*remove_p, s);
addlinknode(*remove_p, dupstring(s));
pc += (WC_ASSIGN_TYPE(ac) == WC_ASSIGN_SCALAR ?
3 : WC_ASSIGN_NUM(ac) + 2);