about summary refs log tree commit diff
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
parent7f9f81f3e22a58d6a8af77f05cd05c94faf88d93 (diff)
downloadzsh-cb50583b184fd8aa456fcadd0c25e0c43f704a72.tar.gz
zsh-cb50583b184fd8aa456fcadd0c25e0c43f704a72.tar.xz
zsh-cb50583b184fd8aa456fcadd0c25e0c43f704a72.zip
fix for read -q without a shout (11524)
-rw-r--r--ChangeLog2
-rw-r--r--Src/builtin.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0289344a5..232fe924f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-05-23  Sven Wischnowsky  <wischnow@zsh.org>
 
+	* 11524: Src/builtin.c: fix for read -q without a shout
+	
 	* 11523: Src/hist.c, Src/init.c, Src/lex.c, Src/zsh.h, Src/Zle/zle.h,
  	Src/Zle/zle_main.c, Src/Zle/zle_tricky.c: save and restore more
  	variables in bufferwords(); move gotword() into core
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';
 	}