From 17aadf0338940aae841e67b50ae412687d6cc9ec Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 27 May 2000 08:31:32 +0000 Subject: 11607: For "read -q", open shout if necessary even when SHTTY is already a valid descriptor. --- Src/builtin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index 4ad4d9de9..560855b9e 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -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) { -- cgit 1.4.1