[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62089] find -size -1024k different from -size -1M
From: |
anonymous |
Subject: |
[bug #62089] find -size -1024k different from -size -1M |
Date: |
Sun, 20 Feb 2022 21:33:28 -0500 (EST) |
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/