From cb50583b184fd8aa456fcadd0c25e0c43f704a72 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 23 May 2000 08:37:06 +0000 Subject: [PATCH] fix for read -q without a shout (11524) --- ChangeLog | 2 ++ Src/builtin.c | 4 ++-- 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 + * 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'; }