zsh-workers
 help / color / mirror / code / Atom feed
From: "Rocky Bernstein" <rocky.bernstein@gmail.com>
To: "Zsh hackers list" <zsh-workers@sunsite.dk>
Subject: Re: Weird error message when using bash or ksh form of array initialization
Date: Sun, 24 Aug 2008 21:02:01 -0400	[thread overview]
Message-ID: <6cd6de210808241802w6c6e91a9u67ada279a3f4dd82@mail.gmail.com> (raw)
In-Reply-To: <237967ef0808241740m2e3a3103x77f9c44432b1941c@mail.gmail.com>

Distinction without much of a difference. Comments in line.

On Sun, Aug 24, 2008 at 8:40 PM, Mikael Magnusson <mikachu@gmail.com> wrote:
> 2008/8/25 Rocky Bernstein <rocky.bernstein@gmail.com>:
>> 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
>


      reply	other threads:[~2008-08-25  1:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-24 16:05 Rocky Bernstein
2008-08-24 16:13 ` Mikael Magnusson
2008-08-24 20:32 ` Bart Schaefer
2008-08-25  0:12   ` Rocky Bernstein
2008-08-25  0:40     ` Mikael Magnusson
2008-08-25  1:02       ` Rocky Bernstein [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6cd6de210808241802w6c6e91a9u67ada279a3f4dd82@mail.gmail.com \
    --to=rocky.bernstein@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).