From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22169 invoked by alias); 2 Nov 2015 00:50:01 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20869 Received: (qmail 2733 invoked from network); 2 Nov 2015 00:49:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,BODY_URI_ONLY autolearn=no autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=hFxs0f5JAArYXmzDxhrHQA==:117 a=hFxs0f5JAArYXmzDxhrHQA==:17 a=gH2l33NO9zgA:10 a=Fdkxr_5KmFUA:10 a=3sW2NsGEmQwc1J_izy4A:9 a=pvA44qeTxYYA:10 a=UYi7mTTG-PYA:10 Message-id: <5636B333.8060300@eastlink.ca> Date: Sun, 01 Nov 2015 16:49:55 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: easy calling of associative array? References: <56369C7B.2030604@eastlink.ca> <1237641446422150@web6m.yandex.ru> In-reply-to: <1237641446422150@web6m.yandex.ru> Content-type: text/plain; charset=koi8-r; format=flowed Content-transfer-encoding: 7bit On 11/01/2015 03:55 PM, ZyX wrote: > 02.11.2015, 02:44, "Ray Andrews" : > > 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.