From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8777 invoked by alias); 12 Aug 2010 21:21:39 -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: 15279 Received: (qmail 23559 invoked from network); 12 Aug 2010 21:21:38 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=hmKcG5pl1J6u0bu+6QctnzaxYJROQ4kWSEYHS+GXRgM=; b=i17xLzxCTLMzDtUq3fUo65k6enAQZDDsVD8oAupLD28cNDr3qpbnkssgw9WyO4zY0k Qgm4G9aQxg3yHrabvYAUOpWpcsuEzZgd6RPte/jH8SZdS5ykQw2DVXSbLeNMRxH8gcJX YUsGgaiRwjV5913HsrTaqP8tzHxAOrqH0T7ic= 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 :cc:content-type; b=pHJ1qArTe8Uz+Zm9VQ8ov5bJIhdDYuwt47ttVB32RbmxFdeh9Etg7XZyqOvyl+T7TP B4X4K0jbj58f37KFM3jR2ukDgLGyn0uXNmW65L0mnhMiZUhpilGFeuJwREHGCyBWAEcV FBXNdDgphowv5OgwPBi7HBTTknnrixm4KwzGw= MIME-Version: 1.0 In-Reply-To: <1281644885-sup-6838@linuxacer> References: <1281644885-sup-6838@linuxacer> Date: Thu, 12 Aug 2010 23:21:33 +0200 Message-ID: Subject: Re: Globbing question (beginner) From: Mikael Magnusson To: Bryan Hunt Cc: zsh-users Content-Type: text/plain; charset=UTF-8 On 12 August 2010 22:43, 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]) -- Mikael Magnusson