Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: Parameter expansion/substitution rules
- X-seq: zsh-workers 5932
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: Parameter expansion/substitution rules
- Date: Thu, 25 Mar 1999 09:03:38 +0100 (MET)
- In-reply-to: Peter Stephenson's message of Wed, 24 Mar 1999 17:20:58 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> I've also mentioned double subscripting of arrays, e.g. $path[1][2].
Your example in the manual is correct, but maybe we should mention
explicitly that multiple subscripts are supported only if the whole
thing is in braces.
Also, this doesn't work only for arrays. One can apply as many
subscripts as one wishes to whatever one wishes. Maybe we should add
an example for something like `select the last element matching a* in
the first four elements of array foo', which would be `${foo[1,4][(R)a*]}'.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author