From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20470 invoked from network); 23 Sep 2003 16:55:48 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Sep 2003 16:55:48 -0000 Received: (qmail 10838 invoked by alias); 23 Sep 2003 16:55:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19130 Received: (qmail 10829 invoked from network); 23 Sep 2003 16:55:38 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 23 Sep 2003 16:55:38 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.232.255] by sunsite.dk (MessageWall 1.0.8) with SMTP; 23 Sep 2003 16:55:37 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h8NGtad29099 for zsh-workers@sunsite.dk; Tue, 23 Sep 2003 09:55:36 -0700 From: Bart Schaefer Message-Id: <1030923165535.ZM29098@candle.brasslantern.com> Date: Tue, 23 Sep 2003 16:55:35 +0000 In-Reply-To: <20030923161213.GA772@DervishD> Comments: In reply to DervishD "Would this (o) be very difficult to add?" (Sep 23, 6:12pm) References: <20030923161213.GA772@DervishD> X-Mailer: Z-Mail (5.0.0 30July97) To: Zsh Subject: Re: Would this (o) be very difficult to add? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 23, 6:12pm, DervishD wrote: } } Sometimes we want to do globbing and sort the output randomly: } when generating playlists, when generating image slideshows, etc... Try this: print -lP *(e:'REPLY=%0(l..$RANDOM)"$REPLY"':) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net