zsh-users
 help / color / mirror / code / Atom feed
From: Dan Nelson <dnelson@allantgroup.com>
To: TJ Luoma <luomat@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: How to find owner of file or folder?
Date: Mon, 27 Feb 2012 12:38:42 -0600	[thread overview]
Message-ID: <20120227183842.GI59682@dan.emsphone.com> (raw)
In-Reply-To: <CADjGqHuiMcw683qEm_7yX77ExxYYT8VdtTLavB1t9Zb30pNZ9Q@mail.gmail.com>

In the last episode (Feb 27), TJ Luoma said:
> On Mon, Feb 27, 2012 at 12:31 PM, Dan Nelson <dnelson@allantgroup.com> 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


  reply	other threads:[~2012-02-27 18:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27 16:55 TJ Luoma
2012-02-27 17:31 ` Dan Nelson
2012-02-27 18:30   ` TJ Luoma
2012-02-27 18:38     ` Dan Nelson [this message]
2012-02-27 19:55       ` TJ Luoma
2012-02-27 17:35 ` Danek Duvall
2012-02-27 17:37 ` Peter Stephenson
2012-02-27 18:18   ` TJ Luoma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120227183842.GI59682@dan.emsphone.com \
    --to=dnelson@allantgroup.com \
    --cc=luomat@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).