mirror of
https://github.com/zsh-users/zsh
synced 2024-11-05 16:08:45 +00:00
31882: Insulate completion widget against environment.
Prevents change in pipestatus leaking back out.
This commit is contained in:
parent
59b060bd5b
commit
7a5b85292a
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
|||
2013-10-24 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 31882: Src/Zle/compcore.c: better insulation of
|
||||
completion widget excecution against job environment.
|
||||
|
||||
* 31884: Test/A05execution.ztst: eliminate variable output
|
||||
from test due to vagaries of uniq implementation.
|
||||
|
||||
|
|
|
@ -826,7 +826,6 @@ callcompfunc(char *s, char *fn)
|
|||
sfcontext = SFC_CWIDGET;
|
||||
NEWHEAPS(compheap) {
|
||||
LinkList largs = NULL;
|
||||
int olv = lastval;
|
||||
|
||||
if (*cfargs) {
|
||||
char **p = cfargs;
|
||||
|
@ -836,9 +835,7 @@ callcompfunc(char *s, char *fn)
|
|||
while (*p)
|
||||
addlinknode(largs, dupstring(*p++));
|
||||
}
|
||||
doshfunc(shfunc, largs, 0);
|
||||
cfret = lastval;
|
||||
lastval = olv;
|
||||
cfret = doshfunc(shfunc, largs, 1);
|
||||
} OLDHEAPS;
|
||||
sfcontext = osc;
|
||||
endparamscope();
|
||||
|
|
Loading…
Reference in a new issue