about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-05-27 08:31:32 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-05-27 08:31:32 +0000
commit17aadf0338940aae841e67b50ae412687d6cc9ec (patch)
treea4b88bb5516e2ceca35535ea66220873641a6151
parent301c475bd94f9d7e7a99d3e057437f08aed88ea1 (diff)
downloadzsh-17aadf0338940aae841e67b50ae412687d6cc9ec.tar.gz
zsh-17aadf0338940aae841e67b50ae412687d6cc9ec.tar.xz
zsh-17aadf0338940aae841e67b50ae412687d6cc9ec.zip
11607: For "read -q", open shout if necessary
even when SHTTY is
already a valid descriptor.
-rw-r--r--Src/builtin.c3
1 files changed, 3 insertions, 0 deletions
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) {