zsh-workers
 help / color / mirror / code / Atom feed
From: Bernd Eggink <eggink@uni-hamburg.de>
To: Zsh-workers <zsh-workers@math.gatech.edu>
Subject: Re: typeahead problem
Date: Tue, 08 Dec 1998 18:39:23 +0100	[thread overview]
Message-ID: <366D644B.72C33C2@uni-hamburg.de> (raw)
In-Reply-To: <001101be22c3$12fde9b0$21c9ca95@mowp.siemens.ru>

Andrej Borsenkow wrote:
 
> As to why it is taken for "no" - imagine, you typed something _before_
> read -q, and that was not completely consumed - you definitely does not want
> some leftover "y" to remove your valuable files :) so it tries to play safe.

But of course the prompt could as well have been "Do you want to keep
the file?"! IMHO it would be safer to discard all previously typed
characters before querying.

> The only thing I don't understand, why it works on my system ...

You're lucky. I don't understand a LOT of things! ;)

> The ultimate place to correct it is bin_read(); call
> getquery with last argument 1.

Yeah, that fixes it! Thanks! 
Hm, is there any reason to call getquery(x, 0) at all?

Bernd 

--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html


  reply	other threads:[~1998-12-08 17:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-08 12:38 Bernd Eggink
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 [this message]
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=366D644B.72C33C2@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).