From e4d77529d791af022e69bb817b7ddae6f1bb6771 Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Thu, 29 Jun 2017 18:50:29 +0200 Subject: [PATCH] doc: clarify 'find -size' values prefixed with '+' and '-' * doc/find.texi (node Size): Add a sentence to make even clearer that values prefixed with '+' or '-' do not find files with an exact match of N in file size. * find/find.1 (-size): Likewise. --- doc/find.texi | 3 ++- find/find.1 | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/find.texi b/doc/find.texi index 883fb757..bf0a4edc 100644 --- a/doc/find.texi +++ b/doc/find.texi @@ -1034,7 +1034,8 @@ The number can be prefixed with a `+' or a `-'. A plus sign indicates that the test should succeed if the file uses at least @var{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 -@var{n} units of storage. Bear in mind that the size is rounded up to +@var{n} units of storage; i.e., an exact size of @var{n} units does not match. +Bear in mind that the size is rounded up to the next unit. Therefore @samp{-size -1M} is not equivalent to @samp{-size -1048576c}. The former only matches empty files, the latter matches files from 0 to 1,048,575 bytes. There is no `=' prefix, because diff --git a/find/find.1 b/find/find.1 index cf13f0e2..6df52de3 100644 --- a/find/find.1 +++ b/find/find.1 @@ -916,7 +916,8 @@ differently. The `b' suffix always denotes 512-byte blocks and never 1024-byte blocks, which is different to the behaviour of .BR \-ls . .IP -The + and - prefixes signify greater than and less than, as usual. +The + and - prefixes signify greater than and less than, as usual; +i.e., an exact size of \fIn\fR units does not match. Bear in mind that the size is rounded up to the next unit. Therefore .BR "\-size \-1M" is not equivalent to