Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
read -q broken on OSX / BSD?
- X-seq: zsh-workers 30948
- From: Yaniv Aknin <yaniv@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: read -q broken on OSX / BSD?
- Date: Sun, 6 Jan 2013 11:06:05 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aknin.name; s=google; h=mime-version:date:message-id:subject:from:to:content-type; bh=6g+GPPoQqlohT92TBCVLaJSBpvrMyAwcBlJwHLbHDHI=; b=Xz9OllfIoQIslX2ZQEXXIHQXlDxIAVJH+521U+j4uWspcoWu7+LYuUQBkC0xKaoofF FirsDLhTwCTYHVPFCJA45SrVoHu41lc3aedVTrEZXflca4VyNZfqKBWxna66MVKi8F+l /FyGGq126xImuZHtSRT59/U3rw+vI4KCwsgvU=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author