[bug #62089] find -size -1024k different from -size -1M

anonymous <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Follow-up Comment #2, bug #62089 (project findutils):

I think I know why, in `man find`, it actually gives an example:

```
       -size n[cwbkMG]

...

The + and - prefixes signify greater than and less than, as usual; i.e., an
exact size of n units does not match.  Bear in mind that the size is rounded
up  to  the
              next unit.  Therefore -size -1M is not equivalent to -size
-1048576c.  The former only matches empty files, the latter matches files from
0 to 1,048,575 bytes.

```

So it "only matches empty files"! this behavior is so confusing!

Can we change to let 1M means 1,048,575 bytes? or at least issue a warning:
saying "this flag only matches empty files"!.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62089>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.