Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Random sort qualifier



On 17 February 2010 16:59, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> Possibly mostly useful for selecting a single random file via *(or[1])
> I only looked at the involved functions for about 3 minutes so I can
> make no guarantees more than "It seems to work."

Of course, a minute after sending, I realized the same effect can be
achieved with *(oe:'REPLY=$RANDOM':[1]), not sure if it's worth having
a short form for it. (You can make a  function for it and then say
*(+randsort[1]) too).

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author