summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2017-06-29 18:36:23 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2017-06-29 18:36:23 +0200
commitd2f3e014a0d85351cbd7c6c024a8b8e489e1dae7 (patch)
tree19a292b19e83dcaab6c9dafd79043ff919867ad9
parent79bc9191c75087abc85c2c49827c34023890aa7d (diff)
downloadfindutils-d2f3e014a0d8.tar.gz
doc: fix explanation of 'find -size' example
'find -size -1048576c' also matches empty files. * doc/find.texi (node Size): Change "1 to 1,048,575 bytes" to "0 to 1,048,575 bytes". * find/find.1 (-size): Likewise.
-rw-r--r--doc/find.texi2
-rw-r--r--find/find.12
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/find.texi b/doc/find.texi
index c1b602c..883fb75 100644
--- a/doc/find.texi
+++ b/doc/find.texi
@@ -1037,7 +1037,7 @@ 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
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 1 to 1,048,575 bytes. There is no `=' prefix, because
+matches files from 0 to 1,048,575 bytes. There is no `=' prefix, because
that's the default anyway.
The size does not count indirect blocks, but it does count blocks in
diff --git a/find/find.1 b/find/find.1
index c7b2543..cf13f0e 100644
--- a/find/find.1
+++ b/find/find.1
@@ -921,7 +921,7 @@ Bear in mind that the size is rounded up to the next unit. Therefore
.BR "\-size \-1M"
is not equivalent to
.BR "\-size \-1048576c".
-The former only matches empty files, the latter matches files from 1 to
+The former only matches empty files, the latter matches files from 0 to
1,048,575 bytes.
.IP \-true
Always true.