From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19497 invoked by alias); 28 Nov 2014 19:40:54 -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: 33819 Received: (qmail 22564 invoked from network); 28 Nov 2014 19:40:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=IOK10brD c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=5y4faFyK3SkA:10 a=k0R6fEZisPRvt1vxfo8A:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141128103926.ZM19200@torch.brasslantern.com> Date: Fri, 28 Nov 2014 10:39:26 -0800 In-reply-to: <20141128093420.4fbeab70@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: Inconsistency of GLOB_ASSIGN" (Nov 28, 9:34am) References: <141126215725.ZM13054@torch.brasslantern.com> <20141127204349.036d3807@pws-pc.ntlworld.com> <141127133833.ZM6853@torch.brasslantern.com> <141127150036.ZM5089@torch.brasslantern.com> <20141128093420.4fbeab70@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Inconsistency of GLOB_ASSIGN MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Nov 28, 9:34am, Peter Stephenson wrote: } } Given there not much difference, it would probably be better to stick } with the one that does scalar assignment in the case of a single entry. OK, here's a test. Is the floating point output of "typeset -p" consistent, or are there going to be platform differences that require a different parse? (I stuck with a power of 2 to avoid rounding.) diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index 9a0a4f0..3c9ea08 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -1,5 +1,10 @@ # Tests of parameter assignments +%prep + mkdir assign.tmp && cd assign.tmp + + touch tmpfile1 tmpfile2 + %test typeset -A assoc @@ -413,3 +418,18 @@ >world >worldliness >world + + integer i n x + float f + setopt globassign + i=tmpfile1 + n=tmp* + x=*2 + f=2+2 + typeset -p i n x f +0:GLOB_ASSIGN with numeric types +>typeset -i i=0 +>typeset -a n +>n=(tmpfile1 tmpfile2) +>typeset x=tmpfile2 +>typeset -E f=4.000000000e+00