From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10388 invoked by alias); 12 Apr 2012 19:30:24 -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: 30391 Received: (qmail 9773 invoked from network); 12 Apr 2012 19:30:12 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.43 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=bdkKmqFGbFN2H3hFsSaKO/VVn2EkGm28A1AmGZvrdg8=; b=mAZr9vxRvqb/c0tVFooM33HYSR/aSQNEyYY+c7FvHVHKyNUe16gkJKThx8+um+tcyJ 71OSOEv4TO/3W0q0jzxPfssTJdbeVJaHmdA94bsdhPEX7SsEWZjlGese9uALXRLYcXfv J7xmHBotL+wC9x45QQsDTDUer58vy+Uek/0o6JaIRl9H4TcNfVImXIozmNpjziaYWZBV 11lmPhgHaJxWmtpJbnKtM1SLbUMZ3ytvT2ckXsC5OLvATgFfeclMJItjKCRGskN4q9Zi TD3dEMNf71KM2RSTSjYU74QrtYd3pM+f4apu66t1FBnFbhplj45xUtDtH/Kz3H82k9h3 NMuw== X-ProxyUser-IP: 86.6.29.42 Date: Thu, 12 Apr 2012 20:29:58 +0100 From: Peter Stephenson To: zsh-workers Subject: Re: D04parameter fails on OSX Message-ID: <20120412202958.73820fb1@pws-pc.ntlworld.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmIJaoWeJzj3viik5uEsqSM805a+s1TGti7RNRhZHI/u0RkVRAoxgZdLI4g3QWC5CW8udwk 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 sa= id > 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) } =20 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 */ --=20 Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/