From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5142 invoked by alias); 12 Aug 2010 21:14:29 -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: 15278 Received: (qmail 14421 invoked from network); 12 Aug 2010 21:14:27 -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 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.41 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:subject:from:to :date:message-id:user-agent:content-transfer-encoding; bh=85WlyErh3FbRY5u+PjpgcWgQKBnMZ3Uk/Hdje0aN5a4=; b=QSv0zv/X3wx07SmJkDeXBADQVisQe+0/JKjj6ZrOJrYAprE/Q5iai2OgZrsQmAxfht ranIsdEFmYNTKTphLX0gSJ3kuoqfbSwdtmG8qumsqJB4akgvVMu/6q76fv7b5YRzmJrD WkFxMVerwmG+dm/1WL33H0swDliIvA8xD18lo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:subject:from:to:date:message-id:user-agent :content-transfer-encoding; b=gZxt2M1MAFXeWoNKWHzUEa/y3vsfeISbMCNNKVWB3zfOagBnZuOWD68GwxTlcrXzFe 2Q9dbr4hNqXSGWGnEer1bhoxRZxke7npELAtkijrR3MbjwWXvZ/sWehnDlUQtnVbfRtA mLAo2cQendmqnJDHaqa81Hpv/QKUlycWYCodA= Content-Type: text/plain; charset=UTF-8 Subject: Globbing question (beginner) From: Bryan Hunt To: "zsh-users" Date: Thu, 12 Aug 2010 21:43:59 +0100 Message-Id: <1281644885-sup-6838@linuxacer> User-Agent: Sup/0.11 Content-Transfer-Encoding: 8bit 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 ? -- --