[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stat(1): --format="%t" broken
From: |
David_Featherstone |
Subject: |
Re: stat(1): --format="%t" broken |
Date: |
Fri, 11 May 2007 16:29:45 -0400 |
Okay. Thanks for the link.
BTW - I confirmed that I am using (a) a non-builtin version, and (b) that
it is indeed an older version:
# /usr/bin/stat --version
stat (coreutils) 5.2.1
Written by Michael Meskes.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
# /usr/bin/stat -f --format="%t" /
*
... Dave
David Featherstone
Mitel Corporation
613-592-5660 x2103
Jim Meyering <address@hidden>
05/11/2007 03:15 PM
To
address@hidden
cc
address@hidden
Subject
Re: stat(1): --format="%t" broken
address@hidden wrote:
> The output of the stat(1) command (with "%t" format sequence) should be
> the hex value of the filesystem; instead, it prints an asterisk (for
> any/all filesystems).
>
> # uname -a
> Linux mybox 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686
> i686 i386 GNU/Linux
> # stat -f --format="%T" /
> ext2/ext3
> # stat -f --format="%t" /
> *
What does stat --version report?
I'll bet you're using an older version.
The latest is from coreutils-6.9, e.g.,
ftp://ftp.gnu.org/gnu/coreutils/coreutils-6.9.tar.gz
The latest works fine for me:
$ /usr/bin/stat -f --format="%t" /
ef53
$ /usr/bin/stat -f --format="%T" /
ext2/ext3
"stat" is a built-in function for some shells.
I suppose that *might* be the problem, but I doubt it.