From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22331 invoked from network); 9 Feb 2002 00:09:52 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Feb 2002 00:09:52 -0000 Received: (qmail 29065 invoked by alias); 9 Feb 2002 00:09:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4669 Received: (qmail 29052 invoked from network); 9 Feb 2002 00:09:39 -0000 Date: Sat, 9 Feb 2002 00:09:37 +0000 (GMT) From: Bart Schaefer Sender: lantern@brasslantern.com To: Steve Talley cc: zsh-users@sunsite.dk Subject: Re: Reverse the order of an array? In-Reply-To: <20020208165535.D10334@thpppt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 8 Feb 2002, Steve Talley wrote: > Thanks Bart. The best that I had come up with was: > > indexes=({$#osvers..1}) > tmp=('$osvers['$^indexes']') > osvers=${(e)tmp} > > Do you see any way (other than skipping the whole thing :) to simplify > this? Hmm, I should have thought of that. eval osvers\=\( \"\$osvers\[{$#osvers..1}\]\" \)