zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: [doc] read -qs
Date: Sun, 3 Aug 2014 19:28:41 +0100	[thread overview]
Message-ID: <20140803192841.064681cb@pws-pc.ntlworld.com> (raw)
In-Reply-To: <20140801210441.GA29604@chaz.gmail.com>

On Fri, 1 Aug 2014 22:04:41 +0100
Stephane Chazelas <stephane.chazelas@gmail.com> 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@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


  reply	other threads:[~2014-08-03 18:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 21:04 Stephane Chazelas
2014-08-03 18:28 ` Peter Stephenson [this message]
2014-08-03 21:38   ` Stephane Chazelas
2014-08-04 18:40     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140803192841.064681cb@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).