Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Reversing arrays
- X-seq: zsh-workers 18575
 
- From: David Gómez <david@xxxxxxxxxxxx>
 
- To: Zsh-workers <zsh-workers@xxxxxxxxxx>
 
- Subject: Re: Reversing arrays
 
- Date: Fri, 23 May 2003 17:25:30 +0200
 
- In-reply-to: <8396.1053702307@xxxxxxx>
 
- Mail-followup-to: Zsh-workers <zsh-workers@xxxxxxxxxx>
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
 
- References: <20030523150151.GA404@fargo> <8396.1053702307@xxxxxxx>
 
Hi Peter ;),
> > Does zsh support some method to reverse an array? I've been looking at the
> > subscript flags, but none of them seems to reverse an array, although it's
> > seems there has been some discussion, looking through the archives, about
> > this issue in the list some time ago. 
> 
> 4.1.1 supports ${(Oa)array} (O = reverse of the order specified in the
> next flag, a = normal array order).
I'm using test1. Right now i've tested it and it works ok. I thought it
wasn't supported because i didn't see anything in the documentation.
> 4.1.1 is *definitely* coming Real Soon Now.
That's great ;)
thanks for your help ;)
-- 
David Gómez
"The question of whether computers can think is just like the question of
 whether submarines can swim." -- Edsger W. Dijkstra
Messages sorted by:
Reverse Date,
Date,
Thread,
Author