Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: x=(foo ; bar) array assignments with embedded semicolons
- X-seq: zsh-workers 37134
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: x=(foo ; bar) array assignments with embedded semicolons
- Date: Wed, 18 Nov 2015 10:20:32 +0000
- In-reply-to: <CAH+w=7ZATfH7XbL1APMj3H=-GBMd+1MqYwF+JoHvc=r5kL+Wew@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <20151117221605.GB1845@tarsus.local2> <CAH+w=7ZATfH7XbL1APMj3H=-GBMd+1MqYwF+JoHvc=r5kL+Wew@mail.gmail.com>
On Tue, 17 Nov 2015 15:55:10 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> That's actually a feature, it's the same as writing
>
> x=(foo
> bar)
>
> Yes, I'm being somewhat facetious, but that's why it happens.
I don't think it's facetious at all. Unquoted ";" is a separator,
whether in an array or not. The only other thing I can think of it
could reasonably do is an error because you haven't completed the array
before the end of the command, but that doesn't seem very useful.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author