From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 31 Mar 2006 18:27:13 -0800 From: Bart Schaefer Subject: Re: part of an associativz array To: zsh-users Message-id: <060331182713.ZM8181@torch.brasslantern.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Seq: zsh-users 10120 On Mar 31, 10:35pm, Marc Chantreux wrote: } } something like : } } $user[login,uid] } } any idea ? ${(v)user[(I)(login|uid)]} However, you get them in the indeterminate order in which they appear in the hash, rather than in the order given in the pattern. To get them in predictable order, you need something a lot uglier, like ${(e):-\$user\[{login,uid}\]}