diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2000-05-27 08:31:32 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-05-27 08:31:32 +0000 |
commit | 17aadf0338940aae841e67b50ae412687d6cc9ec (patch) | |
tree | a4b88bb5516e2ceca35535ea66220873641a6151 | |
parent | 301c475bd94f9d7e7a99d3e057437f08aed88ea1 (diff) | |
download | zsh-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.c | 3 |
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) { |