[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: stat(1): --format="%t" broken
From: |
Jim Meyering |
Subject: |
Re: stat(1): --format="%t" broken |
Date: |
Fri, 11 May 2007 21:15:29 +0200 |
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.