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:
parent
301c475bd9
commit
17aadf0338
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue