From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15783 invoked from network); 25 Aug 2008 01:02:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Aug 2008 01:02:27 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 74902 invoked from network); 25 Aug 2008 01:02:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Aug 2008 01:02:18 -0000 Received: (qmail 9336 invoked by alias); 25 Aug 2008 01:02:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25529 Received: (qmail 9319 invoked from network); 25 Aug 2008 01:02:07 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 25 Aug 2008 01:02:07 -0000 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by bifrost.dotsrc.org (Postfix) with ESMTP id B5B348030846 for ; Mon, 25 Aug 2008 03:02:03 +0200 (CEST) Received: by yx-out-2324.google.com with SMTP id 31so662845yxl.81 for ; Sun, 24 Aug 2008 18:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=XNylQ04m4nu0TZM0n2a6ZXWjcVrXzaw1MfdbctaZz7U=; b=w5iJp+orHNzanc2YeCiS6pPr81gydqPbIc0Aj4KufhZbHrXm2qZJuPccueOIlJd5Ly jaH8w0FSGWXhk5y0osT0+FioZqrkvRBAGubWQBRz5+Y+8ELVFnDXezvgw6y03NRJdrVI qfOn6dNAO4nRgTqghTrts7hyHjFBd2Wbxc5/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=mOTlnpg43TEXlqQx70fWqXJQN0F3sL+D2e0T1UYUhEobGbSUmhzPDRe6F7OE1WYrWN +xA3NoGNaHveXVDtGRHbfwKZ+WvOv9H8ZDgLD0rUtUVvQH0+SOY0zS5CqttS8DIajMuf rTQbf4Uf/ic9/8+ww4XLMT9yeXpfEdy9sCKKI= Received: by 10.115.15.5 with SMTP id s5mr2923344wai.6.1219626121818; Sun, 24 Aug 2008 18:02:01 -0700 (PDT) Received: by 10.114.159.2 with HTTP; Sun, 24 Aug 2008 18:02:01 -0700 (PDT) Message-ID: <6cd6de210808241802w6c6e91a9u67ada279a3f4dd82@mail.gmail.com> Date: Sun, 24 Aug 2008 21:02:01 -0400 From: "Rocky Bernstein" To: "Zsh hackers list" Subject: Re: Weird error message when using bash or ksh form of array initialization In-Reply-To: <237967ef0808241740m2e3a3103x77f9c44432b1941c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6cd6de210808240905s40c8c86ch4766b711e87ffde5@mail.gmail.com> <080824133218.ZM16802@torch.brasslantern.com> <6cd6de210808241712o2c6d4af3k2dcdf0b7721f79fe@mail.gmail.com> <237967ef0808241740m2e3a3103x77f9c44432b1941c@mail.gmail.com> X-Virus-Scanned: ClamAV 0.92.1/8082/Sun Aug 24 18:40:03 2008 on bifrost X-Virus-Status: Clean Distinction without much of a difference. Comments in line. On Sun, Aug 24, 2008 at 8:40 PM, Mikael Magnusson wrote: > 2008/8/25 Rocky Bernstein : >> Thanks folks for the explanation of what's happening. >> >> I realize that. And IMHO I think it should support it when bash or ksh >> emulation is in force ;-). But more troublesome is the fact that it gives >> an error message that is probably going to be a bit puzzling to most >> people who know ksh and bash, but zsh less so. > > Just wanted to point out there's no such thing as "bash emulation" in zsh. :) > (and of course, sh doesn't support arrays at all (IIRC)). Okay - I stand corrected here. I meant it should support it in ksh emulation. And in both *sh* and ksh emulation, it would be helpful to ban that from use since neither support that zsh-specific function definition form. Supporting array initialization like ksh and bash do is incidental. More important I think is reducing damaging behavior when making simple (and perhaps likely) mistakes and/or giving a more likely understandable error message. > > -- > Mikael Magnusson >