From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: Test Failures
Date: Thu, 25 Sep 2003 10:39:43 +0100 [thread overview]
Message-ID: <7728.1064482783@csr.com> (raw)
In-Reply-To: "Wayne Davison"'s message of "Thu, 25 Sep 2003 00:38:03 PDT." <20030925073803.GA4990@binome.blorf.net>
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@csr.com> 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.
**********************************************************************
next prev parent reply other threads:[~2003-09-25 9:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-25 1:29 Vin Shelton
2003-09-25 4:06 ` Bart Schaefer
2003-09-25 7:38 ` Wayne Davison
2003-09-25 9:39 ` Peter Stephenson [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-03-28 20:24 Vin Shelton
2003-03-30 18:59 ` Bart Schaefer
2003-03-30 20:08 ` Vin Shelton
2003-03-31 10:22 ` Peter Stephenson
2003-03-31 21:59 ` Vin Shelton
2003-04-01 9:52 ` Peter Stephenson
2003-04-01 13:37 ` Vin Shelton
2000-05-03 5:33 Test failures Felix Rosencrantz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7728.1064482783@csr.com \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).