Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [doc] read -qs
On Fri, 1 Aug 2014 22:04:41 +0100
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> The doc for the "read" builtin has:
>
> -s
> Don't echo back characters if reading from the terminal.
> Currently does not work with the -q option.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Why? It seems to work for me (no echo when I do "read -qs").
Yes, looking at the current code I think this is properly covered and
not just a fluke in your case --- we change the TTY mode before handing
'-q' and put it back afterwards. I haven't done the archival research
that would explain the change, however --- I've a vague suspicion we
rationalised -q into the -k code at some point.
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index a4d6f89..f709f50 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1288,8 +1288,7 @@ continuation and backslashes in the line don't quote the following
character and are not removed.
)
item(tt(-s))(
-Don't echo back characters if reading from the terminal. Currently does
-not work with the tt(-q) option.
+Don't echo back characters if reading from the terminal.
)
item(tt(-q))(
Read only one character from the terminal and set var(name) to
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author