Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2002 06:26:12 +0000
From:      Dima Dorfman <dima@trit.org>
To:        Paul Herman <pherman@frenchfries.net>
Cc:        Giorgos Keramidas <keramida@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: mergemaster(8) broken -- uses Perl 
Message-ID:  <20020519062613.04B153E1A@turbine.trit.org>
In-Reply-To: <20020518231328.W1980-100000@mammoth.eat.frenchfries.net>; from pherman@frenchfries.net on "Sat, 18 May 2002 23:20:07 -0700 (PDT)"

next in thread | previous in thread | raw e-mail | index | archive | help
Paul Herman <pherman@frenchfries.net> wrote:
> On Sun, 19 May 2002, Dima Dorfman wrote:
> 
> > How about fixing ls(1) to output the numeric mode if asked to?
> 
> That's good, but while you're at it you'd probably want to get
> *everything* out of (struct stat) and print it numerically (device,
> flags, atime since epoch, etc.)  You could do this in ls(1), but
> I'll have a patch for fstat(1) soon (working on it) that gives you:
> 
> bash$ /usr/obj/usr/src/usr.bin/fstat/fstat -s /tmp /kernel
> INODE  DEV    SIZE     BLOCKS MODE   FLAGS  LNK UID GID ATIME      MTIME     CTIME      NAME
> 235    226304 4114305  8096   100555 400000 1   0   0   1021779222 10217403541021740354 /kernel
> 56651  226304 512      4      041777 000000 6   0   0   1021787523 10217876571021787657 /tmp
> 
> so you can parse it however you like.  Either way, ls(1) or
> fstat(1), as long as you can get the info you need.  :-)

This looks much better than my extention.  I look forward to seeing
this get into the tree.

Thanks.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020519062613.04B153E1A>