summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2017-06-29 18:50:29 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2017-06-29 18:50:29 +0200
commite4d77529d791af022e69bb817b7ddae6f1bb6771 (patch)
treeb790eead3b43e1a1f4e2d4319f4096de15f37c86
parentd2f3e014a0d85351cbd7c6c024a8b8e489e1dae7 (diff)
downloadfindutils-e4d77529d791.tar.gz
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.
-rw-r--r--doc/find.texi3
-rw-r--r--find/find.13
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/find.texi b/doc/find.texi
index 883fb75..bf0a4ed 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 cf13f0e..6df52de 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