mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-18 15:21:16 +02:00
30949: restore "read -q" behavior lost by 27188
This commit is contained in:
parent
a67802ba82
commit
dda51b9dbb
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-01-06 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 30949: Src/builtin.c: restore "read -q" behavior lost by 27188.
|
||||
|
||||
2013-01-05 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 30946: Robert Kovacsics: Completion/X/Command/_xrandr: use
|
||||
|
@ -431,5 +435,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.5782 $
|
||||
* $Revision: 1.5783 $
|
||||
*****************************************************
|
||||
|
|
|
@ -5490,6 +5490,9 @@ bin_read(char *name, char **args, Options ops, UNUSED(int func))
|
|||
eof = 2;
|
||||
else
|
||||
eof = (bptr - buf != 1 || (buf[0] != 'y' && buf[0] != 'Y'));
|
||||
buf[0] = eof ? 'n' : 'y';
|
||||
buf[1] = 0;
|
||||
bptr = buf+2;
|
||||
}
|
||||
if (OPT_ISSET(ops,'e') || OPT_ISSET(ops,'E'))
|
||||
fwrite(buf, bptr - buf, 1, stdout);
|
||||
|
|
Loading…
Reference in a new issue