From: Bernd Eggink <eggink@uni-hamburg.de>
To: zsh Workers <zsh-workers@math.gatech.edu>
Subject: typeahead problem
Date: Tue, 08 Dec 1998 13:38:26 +0100 [thread overview]
Message-ID: <366D1DC2.2A726728@rrz.uni-hamburg.de> (raw)
A sticking 'y' key on my keyboard revealed a weird zle behaviour which I
first assumed to be a bug, but after glancing through the sources turned
out to be a feature. In a script I have to process a long list of items,
and for each item there is a statement like
read -q "REPLY?Yes or no: " && do_something
Now if "do_something" takes some time and you type at least one
character in advance, 'read -q' behaves as if you are constantly typing
'n', until you consume the pending character by a normal 'read'. In
other words, if you do NOT issue a normal read, EVERY following 'read
-q' will behave as if you had typed 'n', until the end of the script.
Is there a rationale for this feature (which I still consider a bug,
because it makes 'read -q' nearly unusable, at least in scripts)?
Bernd
--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@rrz.uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
next reply other threads:[~1998-12-08 12:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-08 12:38 Bernd Eggink [this message]
1998-12-08 13:01 ` Andrej Borsenkow
1998-12-08 14:07 ` Bernd Eggink
1998-12-08 14:30 ` Andrej Borsenkow
1998-12-08 15:08 ` Bernd Eggink
1998-12-08 15:54 ` Andrej Borsenkow
1998-12-08 17:39 ` Bernd Eggink
1998-12-08 18:06 ` Bart Schaefer
1998-12-08 18:38 ` Andrej Borsenkow
1998-12-08 18:38 ` Bernd Eggink
1998-12-08 21:22 ` Bart Schaefer
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=366D1DC2.2A726728@rrz.uni-hamburg.de \
--to=eggink@uni-hamburg.de \
--cc=zsh-workers@math.gatech.edu \
/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).