From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24431 invoked by alias); 12 Aug 2010 21:23:00 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15280 Received: (qmail 27803 invoked from network); 12 Aug 2010 21:22:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: "zsh-users" Subject: Re: Globbing question (beginner) In-Reply-To: <1281644885-sup-6838@linuxacer> (Bryan Hunt's message of "Thu, 12 Aug 2010 21:43:59 +0100") References: <1281644885-sup-6838@linuxacer> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Date: Thu, 12 Aug 2010 23:22:03 +0200 Message-ID: <87hbiz4jd0.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Df-Sender: 430444 Bryan Hunt wrote: > On a recent twitter feed, was posted the following snippet - Intended > for printing the name of the most recently modified file in a tree: > > print ./**/*(om[1]) > > I used this as a way of printing the 3 most recently modified files in > a single directory: > > print ./*{(om[1]),(om[2]),(om[3])} > > But something troubles me, it looks ugly - surely there must exist a more > elegant zshism ? % print ./*(om[1,3]) Regards, Frank