Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Random sort qualifier
- X-seq: zsh-workers 27719
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: Random sort qualifier
- Date: Wed, 17 Feb 2010 17:02:02 +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=Gf9W47vhJU6mnyvszPctjChK3hs0ylvM/uRIxNgxQUM=; b=Sg4soMY6s7qS2IzWzax5qmB7y+lISUVCvtZ+QQOwDJVUruDuzKex12wVItr8rMWV/n fXYodiwbKWIsYdUhaw3mdlJyeQ8J6JibozJBm+l7jqIWfSS5abrXYqPx6z5YdEL7hOls rDMFYyPJ48R31OGf2W8J3T6boi2IdVndj2nto=
- 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=sKN97dD5RTKL1CIrc15T15iD9xR8iuViUXErBRNSERmrR5XKkOyx0FsTaKz70eCW9Q 49mKsQnPGklThJL4H6dkepqSi2F5SPgtsTr2J3K7p9EDU7WPuk8NBMU32W5SblPC2KAE Kk0D2ztwKgcp2bFhQRhdNMyFPAdjMXB3CzmbM=
- In-reply-to: <237967ef1002170759x11931f8fj8c61a3e7b081146d@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>
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