zsh-users
 help / color / mirror / code / Atom feed
* Reverse the order of an array?
@ 2002-02-08 22:35 Steve Talley
  2002-02-08 22:59 ` Bart Schaefer
  0 siblings, 1 reply; 7+ messages in thread
From: Steve Talley @ 2002-02-08 22:35 UTC (permalink / raw)
  To: zsh-users

Hi there,

How can I easily reverse the order of an array in zsh?  I was hoping
that something like

    osvers=($osvers[{$#osvers..1}])
    
would work, but no luck.

Any help would be greatly appreciated.

Thanks,

Steve


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-02-11 18:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-08 22:35 Reverse the order of an array? Steve Talley
2002-02-08 22:59 ` Bart Schaefer
2002-02-08 23:55   ` Steve Talley
2002-02-09  0:09     ` Bart Schaefer
2002-02-09  0:17       ` Steve Talley
2002-02-11 13:26       ` Oliver Kiddle
2002-02-11 18:41         ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).