1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-04 20:40:57 +02:00

33077: SHTTY = -1 when closing it in closem()

This commit is contained in:
Barton E. Schaefer 2014-08-31 13:53:25 -07:00
parent 5b57f28256
commit 839a72de10
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2014-08-31 Barton E. Schaefer <schaefer@zsh.org>
* 33077: Src/exec.c: SHTTY = -1 when closing it in closem()
2014-08-30 Barton E. Schaefer <schaefer@zsh.org>
* 33070: Doc/Zsh/prompt.yo, Src/prompt.c: add %(e..) based on %e

View file

@ -3569,8 +3569,11 @@ closem(int how)
for (i = 10; i <= max_zsh_fd; i++)
if (fdtable[i] != FDT_UNUSED &&
(how == FDT_UNUSED || fdtable[i] == how))
(how == FDT_UNUSED || fdtable[i] == how)) {
if (i == SHTTY)
SHTTY = -1;
zclose(i);
}
}
/* convert here document into a here string */