[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Showing actual filesizes with ls
From: |
Paul Eggert |
Subject: |
Re: Showing actual filesizes with ls |
Date: |
Mon, 24 Jan 2005 16:00:33 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
"Joakim Rosqvist (JRO.SE)" <address@hidden> writes:
>> Also, what would ls show for files that are neither regular files nor
>> symlinks? E.g., what "size" would it show for character devices?
>
> For now, it will be a zero (which is what ls -s also shows), as that is
> what the size field of the inode gives.
They should be different things; one depends on st_blocks, the other
on st_size. POSIX says that st_size has an undefined value for
everything other than regular files and symlinks.
"Joakim Rosqvist (JRO.SE)" <address@hidden> writes:
> Showing major/minor-numbers is an interesting idea ("show what ls -l
> would have shown").
This sounds a bit too much like creeping featurism. How about if we
just add a more-general argument that lets you specify the desired
output fields, as a format string? That's in the TODO list. It would
solve your problem, no?