[Bug 659771] Re: find does not handle -size parameter 1 correctly

Stefan Wagner hirnstrom at arcor.de
Mon Sep 9 21:32:28 UTC 2013


OK - After a second thought, I come to the conclusion that it might be
better to keep it the way it is.

Sometimes you search for files bigger than x, sometimes smaller than x
and rarely exactly x, but maybe sometimes for small sizes for exactly X
rounded to current measurement (4G, 4M, 4K for example).

Searching for up to 4k with -size 4k seams reasonable. Only for the size
-1k it seams redundant to -empty and maybe unexpected. To have an
uniform behaviour for -3k, -2k, -1k seems to be the right or at least a
reasonable way.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to findutils in Ubuntu.
https://bugs.launchpad.net/bugs/659771

Title:
  find does not handle -size parameter 1 correctly

Status in “findutils” package in Ubuntu:
  Opinion
Status in “findutils” package in Debian:
  Confirmed

Bug description:
  Binary package hint: findutils

  When I use find, to find file smaller dan 1024 bytes like this
  $ find -size -1024c

  the example result is:
  ./Briefcase/Test/pasfoto.jpg.meta
  ./Briefcase/cimg0087.jpg.meta
  ./Briefcase.meta

  However, when switching to the k multiplier I don't get any result until I use 2, instead of 1:
  $ find -size -1k
  $ find -size -2k
  ./Briefcase/Test/pasfoto.jpg.meta
  ./Briefcase/cimg0087.jpg.meta
  ./Briefcase.meta

  The same is true for M and G; It seems there's a bug in handling 1's
  in the -size parameter.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.10
  Package: findutils 4.4.2-1ubuntu1
  Uname: Linux 2.6.35 x86_64
  Architecture: amd64
  Date: Wed Oct 13 10:44:57 2010
  ProcEnviron:
   LANGUAGE=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: findutils

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/findutils/+bug/659771/+subscriptions




More information about the foundations-bugs mailing list