From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5929 invoked by alias); 23 May 2011 15:14:08 -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: 29346 Received: (qmail 3205 invoked from network); 23 May 2011 15:14:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Mon, 23 May 2011 16:10:35 +0100 From: Peter Stephenson To: "Zsh Hackers' List" Subject: Test failure with negative substring offsets Message-ID: <20110523161035.747f484d@pwslap01u.europe.root.pri> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.103.11.49] X-Scanned-By: MailControl A_10_80_00 (www.mailcontrol.com) on 10.71.0.138 This is now failing: ./D04parameter.ztst: starting. *** /tmp/zsh.ztst.err.18663 Mon May 23 15:58:07 2011 --- /tmp/zsh.ztst.terr.18663 Mon May 23 15:58:07 2011 *************** *** 1 **** ! (eval):2: substring expression: 3 < 5 --- 1 ---- ! (eval):2: substring expression: 3 < 0 Test ./D04parameter.ztst failed: error output differs from expected as shown above for: foo="123456789" print ${foo:5:-6} Was testing: Regression test for total length < 0 in string ./D04parameter.ztst: test failed. ************************************** 0 successful test scripts, 1 failure, 0 skipped ************************************** make: *** [check] Error 1 I'll wait for it to stop failing. I'm guessing this is to do with 29224. I think possibly the error could be clearer. It's not really clear what 3 being less than 5 has got to do with the problem, i.e. that counting 6 back from the end puts you before the start offset. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom