summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-09-02 08:46:27 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-09-02 08:46:27 +0000
commitaa24f1a703214a2b51e3417987dd4123177ae115 (patch)
tree6c70a66bd42def352ca3a1888c793d754c617142 /Doc/Zsh
parent7fe494f27a802a4d50bc0a679f03b21b001e4e6b (diff)
downloadzsh-aa24f1a703214a2b51e3417987dd4123177ae115.tar.gz
zsh-aa24f1a703214a2b51e3417987dd4123177ae115.tar.xz
zsh-aa24f1a703214a2b51e3417987dd4123177ae115.zip
users/15350: explain rounding rules for size glob qualifier
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/expn.yo15
1 files changed, 11 insertions, 4 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index cacbfc4d3..96ab133cc 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -2302,10 +2302,17 @@ time.
 )
 item(tt(L)[tt(PLUS())|tt(-)]var(n))(
 files less than var(n) bytes (tt(-)), more than var(n) bytes (tt(PLUS())), or
-exactly var(n) bytes in length. If this flag is directly followed by a `tt(k)'
-(`tt(K)'), `tt(m)' (`tt(M)'), or `tt(p)' (`tt(P)') (e.g. `tt(Lk-50)')
-the check is performed with kilobytes, megabytes, or blocks (of 512 bytes)
-instead.
+exactly var(n) bytes in length.
+
+If this flag is directly followed by a `tt(k)' (`tt(K)'), `tt(m)'
+(`tt(M)'), or `tt(p)' (`tt(P)') (e.g. `tt(Lk-50)') the check is performed
+with kilobytes, megabytes, or blocks (of 512 bytes) instead.  In this
+case a file is regarded as "exactly" the size if the file size rounded up
+to the next unit is equal to the test size.  Hence `tt(*LPAR()Lm1+RPAR())'
+matches files from 1 byte up to 1 Megabyte inclusive.  Note also that
+the set of files "less than" the test size only includes files that would
+not match the equality test; hence `tt(*LPAR()Lm-1+RPAR())' only matches
+files of zero size.
 )
 item(tt(^))(
 negates all qualifiers following it