From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24915 invoked by alias); 24 Apr 2013 22:30:41 -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: 17773 Received: (qmail 4933 invoked from network); 24 Apr 2013 22:30:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 66.111.4.221 is neither permitted nor denied by SPF record at _netblocks3.google.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=0OmWdMQQkZqulxACi3tgOb 1WKqc=; b=PCFiKDk0DQogGezLVQ0LbGXjAPMeIGGI0+brYPDQpK0I9eLW7W6VrP GMfTgqdS8DEQRFORmyRi74nNN1Qsk20zCGBn2panTl+wuqkEM3/RIcoA/GGB8Hi0 zKth78kaK2jbMlPUI+hWm9jB2QewJvI3wRP4XNV6OM1VeMgAmIGW0= X-Sasl-enc: cXe/pMAO4ZSu2Epnn3kZkJUYgouqwrzxldwDqFMbSiJo 1366842630 From: "TJ Luoma" To: "Bart Schaefer" Cc: "Zsh-Users List" Subject: Re: How should I construct this? Date: Wed, 24 Apr 2013 18:30:27 -0400 Message-ID: <9DCE05CD-3C1B-4BF4-9A8E-B29509AE52B8@gmail.com> In-Reply-To: <130424125052.ZM15513@torch.brasslantern.com> References: <130424125052.ZM15513@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate Trial (1.5.4r3323) On 24 Apr 2013, at 15:50, Bart Schaefer wrote: > In addition to Thomas's hashtables remarks, zsh "for" also supports > populating multiple variables each pass around the loop. > > So if you have an ordinary array like your example (BTW I hope those > aren't your real passwords) then you can do Ha… no, just randomly pressed keys… (well, except for Jenny's which is an homage to Tommy Tutone :) > but the SSID probably won't be in the same order as you assigned them, > because hashes return their values in hash bucket order. If you need > to preserve a fixed ordering, you have to use a real array. Ooh, yeah, that's important, as the array lists SSIDs in preferred order. Thanks! TjL