Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: [key]=value syntax, work in progress
- X-seq: zsh-workers 41690
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: [key]=value syntax, work in progress
- Date: Tue, 12 Sep 2017 21:28:50 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1505248131; bh=n124jogRenhdrVJjprG+BxzKIo2/zixDeZN+c5DQKlo=; h=Date:From:To:Subject:In-Reply-To:References; b=kD//5eMEoEYaf1OE41EtwYJLNG1gZ685MZTM73Skje23ZYsxIelpABYfwM8k/upZ9 uFLaK3ikRbWYdGyNkuvwIDZAse6tmix4/JE1CC9KKv8EQ5+fNpmy2WkMxrXeIEmUzU 3Ipn9r6wUMMTjpnjt9WiTKHVcp6VGq3JHf52GaCBwNP3w01+SPujUipYaOhD1ckr/3 p4i86e/JNaWuuNgx1XE9x3tJyoMALQ0d/cFyMPeM5RgpzQoibZJlHjGjVy3Kzn8q6E i+A9d+oNIU0TMxrXsIwzmayoYUW1UQ9HvDJcmER37Jk4PzCPVQ9oIXjSbvmhKvgXfx mgZOFJqhEtepg==
- In-reply-to: <20170912212519.3d873212@ntlworld.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
- References: <20170911215115.6aa27dec@ntlworld.com> <20170912212519.3d873212@ntlworld.com>
On Tue, 12 Sep 2017 21:25:19 +0100
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> Note that this syntax is strict: tt([) and tt(]=) must
> not be quoted, while var(key) may not consist of the unquoted string
> tt(]=), but is otherwise treated as a simple string. Furthermore, all
> elements must match this form or an error is genereted
OK, so bash says this is valid:
$ array=([3]=three four [1]=one two)
$ echo ${array[*]}
one two three four
I'll fix that another time.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author