Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: [key]=value syntax, work in progress



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