zsh-workers
 help / color / mirror / code / Atom feed
From: Yaniv Aknin <yaniv@aknin.name>
To: zsh-workers@zsh.org
Subject: read -q broken on OSX / BSD?
Date: Sun, 6 Jan 2013 11:06:05 +0200	[thread overview]
Message-ID: <CAPzVZKkeEr_oHVkv-mpudxCN=k=sP4PyvyCTofi3+JaP=fJafw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 877 bytes --]

Hi,

I'm running % read -q, and then typing a single character which isn't y, Y
 or n. However, the value set in $REPLY isn't n, it is the character I
typed. The documentation<http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html>
 for read -q explicitly says I should expect 'n' if the typed character
wasn't 'y' or 'Y'.

This behavior reproduces on OSX 10.7 using zsh 4.3.11 (default) and 5.0.0
(Homebrew), but not on Linux (Ubuntu 12.04, zsh 4.3.10) - on Linux, the
value in $READ is n, as expected. A kind Internet guy
observed<http://stackoverflow.com/questions/14141933/zsh-read-q-broken-on-osx>the
broken behaviour on zsh
5.0.2 (i386-portbld-freebsd9.1).

Also, I've tried running under zsh -f, same results (i.e., I don't think
it's in my init scripts).

I believe this is a bug, so I thought it best to bring it here.

Thanks for a great shell,

 - Yaniv

             reply	other threads:[~2013-01-06 10:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-06  9:06 Yaniv Aknin [this message]
2013-01-06 18:43 ` Bart Schaefer
2013-01-06 18:47 ` Peter Stephenson
2013-01-06 22:13   ` Bart Schaefer
2013-01-07  9:47     ` Peter Stephenson
2013-01-07 16:04       ` Bart Schaefer
2013-01-07 21:19         ` 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='CAPzVZKkeEr_oHVkv-mpudxCN=k=sP4PyvyCTofi3+JaP=fJafw@mail.gmail.com' \
    --to=yaniv@aknin.name \
    --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).