From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9591 invoked from network); 25 Sep 2003 09:46:40 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Sep 2003 09:46:40 -0000 Received: (qmail 29245 invoked by alias); 25 Sep 2003 09:46:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19139 Received: (qmail 26910 invoked from network); 25 Sep 2003 09:39:51 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 25 Sep 2003 09:39:51 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 25 Sep 2003 9:39:51 -0000 Received: from EXCHANGE02.csr.com (unverified) by MAILSWEEPER01.cambridgesiliconradio.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Thu, 25 Sep 2003 10:38:31 +0100 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.5329); Thu, 25 Sep 2003 10:40:00 +0100 To: zsh-workers@sunsite.dk Subject: Re: Test Failures In-reply-to: "Wayne Davison"'s message of "Thu, 25 Sep 2003 00:38:03 PDT." <20030925073803.GA4990@binome.blorf.net> Date: Thu, 25 Sep 2003 10:39:43 +0100 Message-ID: <7728.1064482783@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 25 Sep 2003 09:40:00.0059 (UTC) FILETIME=[FCEA18B0:01C38348] Wayne Davison wrote: > Not quite: it might reject any typeset -T without the new separator arg. > The reason is that it checks if argv[3] is non-NULL, which is not a > valid thing to do if argv[2] is NULL. I just checked in a fix. Thanks, that seems to fix both problems, though I'm not sure why... Here's a more specific test for the new syntax. Index: Test/B02typeset.ztst =================================================================== RCS file: /cvsroot/zsh/zsh/Test/B02typeset.ztst,v retrieving revision 1.4 diff -u -r1.4 B02typeset.ztst --- Test/B02typeset.ztst 6 Dec 2002 10:23:21 -0000 1.4 +++ Test/B02typeset.ztst 25 Sep 2003 09:36:48 -0000 @@ -195,6 +195,18 @@ >i:n:n:e:r >outer + typeset -TU MORESTUFF=here-we-go-go-again morestuff '-' + print -l $morestuff +0:Tied arrays with separator specified +>here +>we +>go +>again + + typeset -T THIS will not work +1:Tied array syntax +?(eval):typeset:1: -T requires names of scalar and array + local array[2]=x 1:Illegal local array element assignment ?(eval):local:1: array[2]: can't create local array elements -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************