From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15627 invoked by alias); 6 Jan 2013 10:53:40 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30948 Received: (qmail 1405 invoked from network); 6 Jan 2013 10:53:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, HTML_MESSAGE,HTML_OBFUSCATE_10_20,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.160.44 as permitted sender) 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= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=6g+GPPoQqlohT92TBCVLaJSBpvrMyAwcBlJwHLbHDHI=; b=CBOxADxX/zDq+EymhXfOFgbr67KwmMKXZD2B9saDWymNcoUqjSkT0fARuMnX7X17c0 sbysCWdhyiRXrnAg7kJuWrhUNOIEBLCGQgVKqlAaU/qDPJelQBE9BcY9jfBVhcDoJc61 afP16Z4UAqPSQgOWs4VVGdyC/uGP4iVC8IsRNwxT/1ZgITgNs/ZIpHNd31Dun5LjSbYg P6uR0niiprHzYGmpWCwkfl+cLJMPmGvtOsQAdY2AkZzetC6pqKK3e6yPEZYPsHt9nuZC ifm8D1NNS3ffO+rS0fP1mXh/MKtIxVyfjtps3vaj3o1CV7eRb4uGbR5zP/9YUMb1tNh/ m0OA== MIME-Version: 1.0 Date: Sun, 6 Jan 2013 11:06:05 +0200 Message-ID: Subject: read -q broken on OSX / BSD? From: Yaniv Aknin To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary=047d7b33c724c5ee8904d29b0560 X-Gm-Message-State: ALoCoQmJmO1LTYrTvGofd/+zVTH1k8fhKoyWOpXKxp1X8fHBpIkBtC5/mnNW3xlbS7p6jEecgeTn --047d7b33c724c5ee8904d29b0560 Content-Type: text/plain; charset=UTF-8 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 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 observedthe 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 --047d7b33c724c5ee8904d29b0560--