From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24672 invoked from network); 12 Dec 2001 10:29:36 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?6g2lnJqeE+IH5+y+UAzv2roDBZB8+xel?@203.24.36.3) by ns1.primenet.com.au with SMTP; 12 Dec 2001 10:29:36 -0000 Received: (qmail 5456 invoked from network); 12 Dec 2001 10:29:34 -0000 Received: from sunsite.dk (130.225.247.90) by proxy.melb.primenet.com.au with SMTP; 12 Dec 2001 10:29:34 -0000 Received: (qmail 16281 invoked by alias); 12 Dec 2001 10:29:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4532 Received: (qmail 16269 invoked from network); 12 Dec 2001 10:29:15 -0000 To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: creating associative arrays In-reply-to: ""Akos Szalkai""'s message of "Tue, 11 Dec 2001 19:45:22 +0100." <20011211194522.A8605@2f.hu> Date: Wed, 12 Dec 2001 10:28:46 +0000 Message-ID: <4466.1008152926@csr.com> From: Peter Stephenson "Akos Szalkai" wrote: > I am trying to fill an associative array from a file. If the name of > the file is fixed, e.g. array.txt then the following works: > > : ${(AA)dict::=$( > However, if the filename is given in a parameter then the command: > : ${(AA)dict::=$(<${filename})} > gives the error > zsh: bad set of key/value pairs for associative array. There's not much that can go wrong there, if filename is set to array.txt and that contains an even number of words. Are you sure it is and does? Sorry, I don't think this is very helpful... -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************