From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19694 invoked by alias); 26 Jun 2015 21:56:48 -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: 35622 Received: (qmail 10471 invoked from network); 26 Jun 2015 21:56:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=kcv2AfP2o3rlUb9jAS02kOc8wU2rvMUmCIshTDTQxoY=; b=NZb9KuSJqFfJ3eoketAdLOBcmUZZHpV/Q1Hn250KDqQ2v3+L13g60g07jxQvs0c/o0 km/TdhKngUAWpc/aGrgJ471Bz7gp5HCzLClIiCbkjBjWJ373+AYfPvpHgt7AM309UwNt OZ/mhYpjvO4VW8AMLYPJiQOHL+kxyvF0Xqc//k3Jdn4E6z2s5tlA/uzuafXvlT7MRz10 3iXfbnNu1ae4275knEUw+zf8msYXugB1i/CYqNRHkDZYiyGVdVtGmB9xVnZPdpxO0t6/ RachcX5kYhHUK7T4gdZJYSXHDzZasSenIXBwS90dhNAM6XKEBkDFtZMrtXtj+9AQUbw1 9jKw== X-Gm-Message-State: ALoCoQnC7Uavq5VITkkOP/roY6PiXdmX8N+Viexcz1a8+0v88B/IjRoeysQ9TurCe/cBv0nQ5uUU X-Received: by 10.202.199.79 with SMTP id x76mr3179467oif.121.1435355805423; Fri, 26 Jun 2015 14:56:45 -0700 (PDT) From: Bart Schaefer Message-Id: <150626145642.ZM21883@torch.brasslantern.com> Date: Fri, 26 Jun 2015 14:56:42 -0700 In-Reply-To: <20150625174049.4de5fada@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: New typeset is a bit too verbose, and skips some assignments" (Jun 25, 5:40pm) References: <150625092131.ZM20413@torch.brasslantern.com> <20150625174049.4de5fada@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: New typeset is a bit too verbose, and skips some assignments MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 25, 5:40pm, Peter Stephenson wrote: } Subject: Re: New typeset is a bit too verbose, and skips some assignments } } On Thu, 25 Jun 2015 09:21:31 -0700 } Bart Schaefer wrote: } > The value of x should not have been displayed by the second typeset } } That's related to my previous fix --- x=() causes x to be marked as an } array but with no value, not just an empty list. Thanks for the patch, but it still doesn't address my second point: > the initial empty assignment doesn't have any effect: > > torch% typeset y > torch% typeset y=() y[2]=a y[4]=b > torch% typeset y=() y[1]=x y[3]=z > y=('' a '' b) > torch% typeset -p y > y=(x a z b) > torch% > > I expected y=(x '' z ''). This works for scalars, i.e. torch% typeset x=abcd x[1]=1 x[3]=3 torch% typeset -p x typeset x=1b3d torch% typeset x='' x[2]=2 x[4]=4 torch% typeset -p x typeset x=24 torch% Note that I did NOT get x=1234 out of that last.