Chris Dennis wrote:
> Hello folks
> 
> Is it me, or is 'find' not working properly on my system?
> 
> If I do
> 
>     find . -size -1M -print
> 
> I get no files listed, but with
> 
>     find . -size -not +1M -print
> 
> I get a long list of files.  The directory in question has lots of files 
> of all sizes more and less than 1MB.
> 
> I'm running Debian testing, which means the shell is Bash.  Does Debian 
> have Gnu's find?  If so, the above does not seem to behave as it should.
> 
> cheers
> 
> Chris
Curiouser and curiouser.
I tried again on some other directories, and it works as documented.
But with directories that contain JPEGs (I know that doesn't make sense, 
but it's jpegs that I'm interested in, and they're the ones that are 
failing), I get the following:
   chris@ferox:/tmp$ ls -l testdir
   total 3447
   -r-xr-xr-x 1 chris chris  647200 2003-10-06 23:21 52740003.JPG
   -r-xr-xr-x 1 chris chris 1161190 2005-11-20 10:23 52740018.JPG
   -r-xr-xr-x 1 chris chris  546281 2005-11-20 10:23 52740022.JPG
   -r-xr-xr-x 1 chris chris 1152985 2005-11-20 10:23 52740035.JPG
   chris@ferox:/tmp$ find testdir -size +1M -print
   testdir/52740035.JPG
   testdir/52740018.JPG
   chris@ferox:/tmp$ find testdir -size -1M -print
   chris@ferox:/tmp$ find testdir -not -size +1M -print
   testdir
   testdir/52740022.JPG
   testdir/52740003.JPG
   chris@ferox:/tmp$ find testdir -size -1024k -print
   testdir
   testdir/52740022.JPG
   testdir/52740003.JPG
So '-1M' fails to find the small ones, but '-not +1M' is OK.  '-1024k' 
works too.  And the strangeness doesn't happen in other directories -- I 
haven't exhaustively tested where it does and doesn't occur.
Should I report this apparent bug to somebody?
cheers
Chris
-- 
Chris Dennis                                  cgdennis@???
Fordingbridge, Hampshire, UK