On 2016-06-01 Mathieu B <mathieu.bret...@free.fr> wrote:
> Package: findutils
> Version: 4.4.2-9+b1
> Severity: normal
> File: /usr/bin/find

> Dear Maintainer,

> The "find" utility behaves strangely when using a max size argument with "1" 
> as
> a unit.

> See the following script :

>  #!/bin/sh
>  mkdir test
>  touch test/foo
>  echo "bar" > test/bar
>  find test -size -2b > temp0
>  find test -size -1k > temp1
>  diff temp0 temp1

> (-2b and -1k should be equivalent according to the manual)
[...]

Could you provide a verbatim quote fo that? It should not say so in the
manual.

-------------------------------------
       Numeric arguments can be specified as

       +n     for greater than n,

       -n     for less than n,

       n      for exactly n.
[...]
-size n[cwbkMG]
  File uses n units of space.[...]
-------------------------------------

Any non-empty file uses at least one unit of space and therefore will
not match -size 0X or -size -1X, no matter what value of X.

cu Andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

Reply via email to