From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18644 invoked by alias); 5 Mar 2015 08:47:17 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19972 Received: (qmail 6943 invoked from network); 5 Mar 2015 08:47:15 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Thu, 5 Mar 2015 16:30:00 +0800 From: Han Pingtian To: zsh-users@zsh.org Subject: wrong array range with (r) flag on scalar? Message-ID: <20150305083000.GA3294@localhost.localdomain> Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15030508-8236-0000-0000-000009F3AF84 Hi, Looks like this is wrong: localhost% a='hello world' localhost% print $a[(r)h?] h localhost% print $a[(r)h?,(r)w?] hello wo localhost% In the range, the end should be "w" and the result should be "hello w"?