bug-findutils
[Top][All Lists]
Advanced

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

[bug #46815] problem when testing file size


From: Dale Worley
Subject: [bug #46815] problem when testing file size
Date: Fri, 08 Jan 2016 19:57:27 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0

Follow-up Comment #3, bug #46815 (project findutils):

I have a very strong suspicion that the current code behaves "correctly", that
is, in the way that "find" has always worked.  The original -size meaning
"Does the file occupy N (512-byte) disk blocks?".  (Of course, usually people
would use "-size -N" or "-size +N".)  So the code can't be changed without
causing a lot of scripts to fail.

That being said, the documentation should be made clearer.  If you read the
text carefully, you can tell that it means what the code does.  But the new
user isn't likely to read it correctly.  On my system, the text is:

File uses n units of space.  The following suffixes can be used:

The current text is reportedly:

File uses n units of space, rounding up. The following suffixes can be used: 

A better version is:

File uses exactly n of the specified units of space, rounding up any
fractional unit.  The following suffixes can be used to specify the unit:

Do you think there is any ambiguity in that text?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46815>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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