From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22375 invoked from network); 9 Feb 2002 00:17:57 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Feb 2002 00:17:57 -0000 Received: (qmail 639 invoked by alias); 9 Feb 2002 00:17:46 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4670 Received: (qmail 627 invoked from network); 9 Feb 2002 00:17:45 -0000 Date: Fri, 8 Feb 2002 17:17:40 -0700 From: Steve Talley To: Bart Schaefer Cc: zsh-users@sunsite.dk Subject: Re: Reverse the order of an array? Message-ID: <20020208171740.A1035@thpppt> References: <20020208165535.D10334@thpppt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from schaefer@brasslantern.com on Sat, Feb 09, 2002 at 12:09:37AM +0000 Perfect! I knew there was a better solution. Thanks Bart! Steve Bart Schaefer wrote: > 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}\]\" \)