This is not a bug.
Quoting the documentation:
------------------
-size n[bckwMG]
True if the file uses N units of space, rounding up.
[...]
The number can be prefixed with a `+' or a `-'. A plus sign
indicates that the test should succeed if the file uses at least N
units of storage (a common use of this test) and a minus sign
indicates that the test should succeed if the file uses less than
N units of storage.
------------------
Therefore -size -1k matches all empty files. Any nonempty files uses at
least 1KB ("units of space,") if you you round up.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/659771
Title:
find does not handle -size parameter 1 correctly
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs