Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Writing to an indirectly named array...
- X-seq: zsh-users 16684
- From: meino.cramer@xxxxxx
- To: zsh-users@xxxxxxx
- Subject: Writing to an indirectly named array...
- Date: Sun, 1 Jan 2012 07:09:36 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
HAPPY NEW YEAR! :)
With
myarray=( 1 2 3 4 5 6 7 8 9 10 )
nameofarray=myarray
echo ${(P)nameofarray}
one can read from an array which name is given by the
contents of a variable.
But how can I write to that array the same way (via 'nameofarray') ?
Thank you very much in advance for any help! :)
Best regards,
mcc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author