mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 20:40:57 +02:00
fix for read -q without a shout (11524)
This commit is contained in:
parent
7f9f81f3e2
commit
cb50583b18
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue