diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-23 08:37:06 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-05-23 08:37:06 +0000 |
commit | cb50583b184fd8aa456fcadd0c25e0c43f704a72 (patch) | |
tree | a15f95f2daf0c072c6d5a72e0e9005285123aacb /Src/builtin.c | |
parent | 7f9f81f3e22a58d6a8af77f05cd05c94faf88d93 (diff) | |
download | zsh-cb50583b184fd8aa456fcadd0c25e0c43f704a72.tar.gz zsh-cb50583b184fd8aa456fcadd0c25e0c43f704a72.tar.xz zsh-cb50583b184fd8aa456fcadd0c25e0c43f704a72.zip |
fix for read -q without a shout (11524)
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 92ab41454..4ad4d9de9 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -3440,8 +3440,8 @@ bin_read(char *name, char **args, char *ops, int func) *readpmpt && *readpmpt != '?'; readpmpt++); if (*readpmpt++) { if (keys || isatty(0)) { - zputs(readpmpt, shout); - fflush(shout); + zputs(readpmpt, (shout ? shout : stderr)); + fflush(shout ? shout : stderr); } readpmpt[-1] = '\0'; } |