Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Random sort qualifier
- X-seq: zsh-workers 27720
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: Random sort qualifier
- Date: Wed, 17 Feb 2010 17:02:46 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=VcUtaCeaq/Guy53trw5rr8z3P32ax2TxxD/0/MCON08=; b=RW+YEDOUzdEqrBjLSf+nrcRo5axKqmzORsPz/ivikFXch4TxAUjvu1/d1cHsUW61p3 ZNJJCFURtkIS7bNm1gCqWvD+J59vm52BDeuDwKZzO8NYakFSr6r1WX13Jd3wx+MSNE++ giUZ7iVcWJDYddwujbH5A5YVcv2yGM1u0Lt0E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=W9mr+TDEL3pG9HceJV8glI2arl2mT0Xcsr3AvGKGeasni++4/g8sLkiLALapAIRlW1 pGo04bxBREANAFfff2enVEDppWs+YKVl+1s14AjG5RYEoyZanM03znUZmJUji2USJ+8o 8Z1pJ9MUGvtzwIlVBXHcGiC9dvQfxMGp1HR+o=
- In-reply-to: <237967ef1002170802p75c1f0dcieabe1782dbf71d1e@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <237967ef1002170759x11931f8fj8c61a3e7b081146d@xxxxxxxxxxxxxx> <237967ef1002170802p75c1f0dcieabe1782dbf71d1e@xxxxxxxxxxxxxx>
On 17 February 2010 17:02, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> 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).
Grr, *(o+randsort[1]) of course :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author