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) However, diff returns a difference between temp0 and temp1. In temp0, test/bar and test/foo are found. In temp1, only "test/foo" is "found" by find. The same issue happens with -1M, -1G etc. Strange... mathieu -- System Information: Debian Release: 8.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages findutils depends on: ii libc6 2.19-18+deb8u4 findutils recommends no packages. Versions of packages findutils suggests: ii mlocate 0.26-1 -- no debconf information