From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5887 invoked by alias); 13 Apr 2012 15:39:20 -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: 30397 Received: (qmail 8850 invoked from network); 13 Apr 2012 15:39:16 -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=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=namtrac.org; s=www; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=APeLeTdEQ8HuUo2XupXIXujJqtBFI/B0OhkbjqY0n3c=; b=OZ/WOMzXLVmQW+NbVsrAexgDTg+lJx6q6l36dqrh3YG71G/tJ+l+KHaHTlyCPVSztp 4xhuYQgRuDP38N6KjgzyfZspv9MBTevKBPbsoe3z4Mr6pV5H7W2GUyVFkSJlUrWPsFQA RxXo7CiIFjlxhkeIHHufzNG4jDxo6yCrcW0JA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=APeLeTdEQ8HuUo2XupXIXujJqtBFI/B0OhkbjqY0n3c=; b=dCKBpWsGnpVJyMEihvwlPIQBO4cM8tzkoVNqrT8ETvOLhlxH4n1oYCuEhJq5Axvtwt IBHqeGwjfCk3UffXlRq6hWpF0gPnpn0/AWSlVTMeKMQzzra1NVbRHP0ubzLsPitkhVUp BIRYGrJVPivO8893FiRY/P+5DoInmyuS4f07S42csXWyg/3Fw+ZPcsv/bTxSr8DfvXdt E2C010vLmDnprHPRJUK2kK9ySUEzIYwQAGLPrzqJDvHIBK1nQudk9d7Vd0V11lRvC99L yPZRz2dL9dl/oUiySYVxd8AXQHpRvidTES+5BsqFFikTeqmdYfyMEIdD1voWfvRjWu9e W+9Q== MIME-Version: 1.0 In-Reply-To: <20120412202958.73820fb1@pws-pc.ntlworld.com> References: <20120412202958.73820fb1@pws-pc.ntlworld.com> From: =?UTF-8?B?xLBzbWFpbCBEw7ZubWV6?= Date: Fri, 13 Apr 2012 17:31:24 +0200 Message-ID: Subject: Re: D04parameter fails on OSX To: Peter Stephenson Cc: zsh-workers Content-Type: multipart/alternative; boundary=f46d04478827888e5d04bd912b50 X-Gm-Message-State: ALoCoQkdcUTGgmFZkuluxUEzfDwwMjErJ6GzS/bROI0qOwwVCtg2M5j+lPV2rA+FnAvankqTeW9L --f46d04478827888e5d04bd912b50 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi; On Thu, Apr 12, 2012 at 9:29 PM, Peter Stephenson < p.w.stephenson@ntlworld.com> wrote: > On Thu, 12 Apr 2012 16:28:47 +0200 > =C4=B0smail D=C3=B6nmez wrote: > > ./D04parameter.ztst: starting. > > *** /tmp/zsh.ztst.out.6163 Thu Apr 12 16:27:14 2012 > > --- /tmp/zsh.ztst.tout.6163 Thu Apr 12 16:27:14 2012 > > *************** > > *** 3,7 **** > > --- 3,8 ---- > > said > > i > > will > > + will > > and > > didJOYCE > > Test ./D04parameter.ztst failed: output differs from expected as shown > > above for: > > print -l JAMES${(u)${=3D:-$(echo yes yes she said yes i will yes she = said > > she will and yes she did yes)}}JOYCE > > Was testing: New hash seive unique algorithm for arrays of more than 10 > > elements > > Does this help? > > Index: Src/params.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/zsh/zsh/Src/params.c,v > retrieving revision 1.179 > diff -p -u -r1.179 params.c > --- Src/params.c 10 Apr 2012 01:17:03 -0000 1.179 > +++ Src/params.c 12 Apr 2012 19:28:33 -0000 > @@ -3532,7 +3532,7 @@ arrayuniq(char **x, int freeok) > } > > for (it =3D x, write_it =3D x; *it;) { > - if (! gethashnode(ht, *it)) { > + if (! gethashnode2(ht, *it)) { > HashNode new_node =3D zhalloc(sizeof(struct hashnode)); > if (!new_node) { > /* Oops, out of heap memory, no way to recover */ > Yes it does, thanks a lot! ismail --f46d04478827888e5d04bd912b50--