1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-01 12:56:04 +02:00

11607: For "read -q", open shout if necessary

even when SHTTY is
already a valid descriptor.
This commit is contained in:
Bart Schaefer 2000-05-27 08:31:32 +00:00
parent 301c475bd9
commit 17aadf0338

View File

@ -3406,6 +3406,9 @@ bin_read(char *name, char **args, char *ops, int func)
oshout = shout;
init_shout();
}
} else if (!shout) {
/* We need an output FILE* on the tty */
init_shout();
}
/* We should have a SHTTY opened by now. */
if (SHTTY == -1) {