about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-23 08:37:06 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-23 08:37:06 +0000
commitcb50583b184fd8aa456fcadd0c25e0c43f704a72 (patch)
treea15f95f2daf0c072c6d5a72e0e9005285123aacb /Src
parent7f9f81f3e22a58d6a8af77f05cd05c94faf88d93 (diff)
downloadzsh-cb50583b184fd8aa456fcadd0c25e0c43f704a72.tar.gz
zsh-cb50583b184fd8aa456fcadd0c25e0c43f704a72.tar.xz
zsh-cb50583b184fd8aa456fcadd0c25e0c43f704a72.zip
fix for read -q without a shout (11524)
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c4
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';
 	}