mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-08 21:51:15 +02:00
33077: SHTTY = -1 when closing it in closem()
This commit is contained in:
parent
5b57f28256
commit
839a72de10
2 changed files with 8 additions and 1 deletions
|
@ -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>
|
2014-08-30 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* 33070: Doc/Zsh/prompt.yo, Src/prompt.c: add %(e..) based on %e
|
* 33070: Doc/Zsh/prompt.yo, Src/prompt.c: add %(e..) based on %e
|
||||||
|
|
|
@ -3569,8 +3569,11 @@ closem(int how)
|
||||||
|
|
||||||
for (i = 10; i <= max_zsh_fd; i++)
|
for (i = 10; i <= max_zsh_fd; i++)
|
||||||
if (fdtable[i] != FDT_UNUSED &&
|
if (fdtable[i] != FDT_UNUSED &&
|
||||||
(how == FDT_UNUSED || fdtable[i] == how))
|
(how == FDT_UNUSED || fdtable[i] == how)) {
|
||||||
|
if (i == SHTTY)
|
||||||
|
SHTTY = -1;
|
||||||
zclose(i);
|
zclose(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* convert here document into a here string */
|
/* convert here document into a here string */
|
||||||
|
|
Loading…
Reference in a new issue