zsh-workers
 help / color / mirror / code / Atom feed
From: Eric Cook <llua@gmx.com>
To: zsh-workers@zsh.org
Subject: Re: x=(foo ; bar) array assignments with embedded semicolons
Date: Thu, 19 Nov 2015 00:47:12 -0500	[thread overview]
Message-ID: <564D6260.6080907@gmx.com> (raw)
In-Reply-To: <151118074743.ZM28021@torch.brasslantern.com>

On 11/18/2015 10:47 AM, Bart Schaefer wrote:
> On Nov 18, 10:20am, Peter Stephenson wrote:
> }
> } I don't think it's facetious at all.  Unquoted ";" is a separator,
> } whether in an array or not.
> 
> Nevertheless it is a syntax error in e.g. bash to use ";" there.
> 
And that is what i assumed zsh would do. Since the only syntactical mention of ;
in the man pages i saw was as a list terminator; leaving the incomplete array definition.

Since it is intentional, could it be added to the man pages?


      reply	other threads:[~2015-11-19  6:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-17 22:16 Daniel Shahaf
2015-11-17 23:55 ` Bart Schaefer
2015-11-18 10:20   ` Peter Stephenson
2015-11-18 15:47     ` Bart Schaefer
2015-11-19  5:47       ` Eric Cook [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=564D6260.6080907@gmx.com \
    --to=llua@gmx.com \
    --cc=zsh-workers@zsh.org \
    /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).