Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test Failures



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 <pws@xxxxxxx>                  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.
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author