From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23491 invoked from network); 25 Sep 2003 17:26:54 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Sep 2003 17:26:54 -0000 Received: (qmail 12754 invoked by alias); 25 Sep 2003 17:26:30 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6622 Received: (qmail 12742 invoked from network); 25 Sep 2003 17:26:29 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 25 Sep 2003 17:26:29 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.207.165.230] by sunsite.dk (MessageWall 1.0.8) with SMTP; 25 Sep 2003 17:26:28 -0000 Received: by cyberbuzz.gatech.edu (Postfix, from userid 20135) id 26DC779443; Thu, 25 Sep 2003 13:26:28 -0400 (EDT) Date: Thu, 25 Sep 2003 13:26:28 -0400 From: Jason Price To: zsh-users@sunsite.dk Subject: list keys in assoc array. Message-ID: <20030925132628.A14267@redfish.gatech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i I've been poking through the man pages, and I can't find how to get a list of keys from an associative array. Idealy, I'd like something like: foreach key in array ; do if [ array[key] = someval ] ; then do stuff fi done Am I just being blind in the manpages? Thanks; Jason