diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | 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 <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'; } |