Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Weird error message when using bash or ksh form of array initialization
- X-seq: zsh-workers 25529
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Re: Weird error message when using bash or ksh form of array initialization
- Date: Sun, 24 Aug 2008 21:02:01 -0400
- 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=
- In-reply-to: <237967ef0808241740m2e3a3103x77f9c44432b1941c@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <6cd6de210808240905s40c8c86ch4766b711e87ffde5@xxxxxxxxxxxxxx> <080824133218.ZM16802@xxxxxxxxxxxxxxxxxxxxxx> <6cd6de210808241712o2c6d4af3k2dcdf0b7721f79fe@xxxxxxxxxxxxxx> <237967ef0808241740m2e3a3103x77f9c44432b1941c@xxxxxxxxxxxxxx>
Distinction without much of a difference. Comments in line.
On Sun, Aug 24, 2008 at 8:40 PM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> 2008/8/25 Rocky Bernstein <rocky.bernstein@xxxxxxxxx>:
>> 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
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author