From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12126 invoked by alias); 27 Feb 2012 18:38:48 -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: 16805 Received: (qmail 4805 invoked from network); 27 Feb 2012 18:38:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at dan.emsphone.com does not designate permitted sender hosts) Date: Mon, 27 Feb 2012 12:38:42 -0600 From: Dan Nelson To: TJ Luoma Cc: zsh-users@zsh.org Subject: Re: How to find owner of file or folder? Message-ID: <20120227183842.GI59682@dan.emsphone.com> References: <20120227173150.GH59682@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-OS: FreeBSD 8.2-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.2 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Mon, 27 Feb 2012 12:38:43 -0600 (CST) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 In the last episode (Feb 27), TJ Luoma said: > On Mon, Feb 27, 2012 at 12:31 PM, Dan Nelson wrote: > > $ zmodload zsh/stat > > $ zstat -H fileinfo /usr/local > > $ echo $fileinfo[uid] > > 0 > > $ ls -ld /usr/local > > drwxr-xr-x  42 root  wheel  42 Feb 19 17:05 /usr/local/ > > $ typeset fileinfo > > fileinfo=(atime 1313171206 blksize 4096 blocks 5 ctime 1329692755 device > >  4201426224 gid 0 inode 3366 link '' mode 16877 mtime 1329692755 nlink 42 > >  rdev 4294967295 size 42 uid 0 ) > > Oh cool... I didn't know about $fileinfo either... I actually thought > about doing something along the same lines. Note that "fileinfo" is just an arbitrary variable name I picked. See the zshmodules manpage for more info. -- Dan Nelson dnelson@allantgroup.com