From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4628 invoked from network); 20 Oct 2008 22:20:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.2.5 Received: from ns2.primenet.com.au (HELO primenet.com.au) (203.24.36.3) by ns1.primenet.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 20 Oct 2008 22:20:15 -0000 Received: (qmail 23364 invoked from network); 20 Oct 2008 15:18:07 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns2.melb.primenet.com.au with SMTP; 20 Oct 2008 15:18:07 -0000 Received-SPF: none (ns2.melb.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 94227 invoked from network); 20 Oct 2008 15:10:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Oct 2008 15:10:42 -0000 Received: (qmail 18901 invoked by alias); 20 Oct 2008 15:10:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25920 Received: (qmail 18881 invoked from network); 20 Oct 2008 15:10:21 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 20 Oct 2008 15:10:21 -0000 Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by bifrost.dotsrc.org (Postfix) with ESMTP id 2249680524C2 for ; Mon, 20 Oct 2008 17:10:03 +0200 (CEST) Received: from torch.brasslantern.com ([96.238.220.215]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K9100E82M4LFDK0@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 20 Oct 2008 10:09:58 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m9KF9uVq021181 for ; Mon, 20 Oct 2008 08:09:57 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m9KF9uL5021180 for zsh-workers@sunsite.dk; Mon, 20 Oct 2008 08:09:56 -0700 Date: Mon, 20 Oct 2008 08:09:55 -0700 From: Bart Schaefer Subject: Re: Notes on zsh, zsh/files and recovery In-reply-to: <20081020002843.GA13631@redoubt.spodhuis.org> To: zsh-workers@sunsite.dk Message-id: <081020080955.ZM21179@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20081018204515.GA1642@redoubt.spodhuis.org> <20081019063924.GO99270@dan.emsphone.com> <20081020002843.GA13631@redoubt.spodhuis.org> Comments: In reply to Phil Pennock "Re: Notes on zsh, zsh/files and recovery" (Oct 19, 5:28pm) X-Virus-Scanned: ClamAV 0.92.1/8449/Mon Oct 20 15:48:09 2008 on bifrost X-Virus-Status: Clean On Oct 19, 5:28pm, Phil Pennock wrote: } } Yeah, "echo *" was the first thing I did, but I needed to see the size } and timestamps to figure out which files were affected. If your complaint is about speed, a lot faster would probably be zls () { local -a st local name dev inode mode nlink uid gid rdev local size atmim mtime ctme blksize blocks link [[ $# -eq 0 ]] && set -- * zstat -nsLA st "$@" for name dev inode mode nlink uid gid rdev \ size atmim mtime ctme blksize blocks link \ in "$st[@]" do print -r -- "$mode $nlink ${(r:8:)uid} ${(r:8:)gid} ${(l:9:)size} $name" done } Requires a recent enough zsh to have the multiple-assignment "for" syntax.