bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug


From: James Youngman
Subject: Re: bug
Date: Thu, 7 Oct 2004 23:15:52 +0100
User-agent: Mutt/1.3.28i

On Fri, Aug 20, 2004 at 09:52:48AM +0100, Tim Waugh wrote:
> On Thu, Aug 19, 2004 at 01:44:39PM -0400, Bob Keyes wrote:
> 
> > find version 4.1.20, as in debian testing.
> > 
> > when the -size option is used, and the number is followed by b, it is
> > ignored and blocks are returned. According to the man page, the build-in
> > help file, and reason it should interpret this to be bytes.
> 
> No, I think you've been the victim of sloppy wording.
> 
> Here is the patch we apply for Fedora Core:


This is fixed in CVS as follows :-

.IP "\-size \fIn\fR[cwbkMG]"
File uses \fIn\fP units of space.  The following suffixes 
can be used:
.RS
.IP `b' 
for 512-byte blocks (this is the default if no suffix is used)
.IP `c' 
for bytes
.IP `w' 
for two-byte words
.IP `k' 
for Kilobytes (units of 1024 bytes)
.IP `M' 
for Megabytes (units of 1048576 bytes)
.IP `G' 
for Gigabytes (units of 1073741824 bytes)
.RE
.IP
The size does not count indirect blocks, but it does count blocks in
sparse files that are not actually allocated.  Bear in mind that the
`%k' and `%b' format specifiers of \-printf handle sparse files
differently.  The `b' suffix always denotes 512-byte blocks and never
1 Kilobyte blocks, which is different to the behaviour of \-ls.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]