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

Re: easy calling of associative array?



On 11/01/2015 03:55 PM, ZyX wrote:
02.11.2015, 02:44, "Ray Andrews" <rayandrews@xxxxxxxxxxx>:

There is ${(P)} for indirect referencing:

     % foo=path
     % echo ${${(P)foo}[1]} $path[1]
     /home/zyx/.local/bin /home/zyx/.local/bin

. This is in `man zshexpn`.

I can't get it to work with associative arrays tho.



Messages sorted by: Reverse Date, Date, Thread, Author