about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-12-13 21:57:17 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-12-13 21:57:17 +0000
commitb7669a83992b915d9e114f7e208286196fec70f2 (patch)
treebef6a5d7937e1e73ccf326b88ac357035773c40e
parent724f55afdaa501b7039bbcf7cb20aacc28e9022f (diff)
downloadzsh-b7669a83992b915d9e114f7e208286196fec70f2.tar.gz
zsh-b7669a83992b915d9e114f7e208286196fec70f2.tar.xz
zsh-b7669a83992b915d9e114f7e208286196fec70f2.zip
24241: explain the effect of time glob modifiers better
-rw-r--r--ChangeLog3
-rw-r--r--Doc/Zsh/expn.yo10
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 34cd5a827..54a137a60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-12-13  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 24241: Doc/Zsh/expn.yo: explain the effect of time glob
+	qualifiers better.
+
 	* 24240: Src/Zle/zle_main.c: vared didnʼt check for trailing
 	garbage on parameter names until too late.
 
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index 2803ae994..9fb9f2628 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -2076,8 +2076,14 @@ Files accessed more than var(n) days ago are selected by a positive var(n)
 value (tt(PLUS())var(n)).  Optional unit specifiers `tt(M)', `tt(w)',
 `tt(h)', `tt(m)' or `tt(s)' (e.g. `tt(ah5)') cause the check to be
 performed with months (of 30 days), weeks, hours, minutes or seconds
-instead of days, respectively.  For instance, `tt(echo *(ah-5))' would
-echo files accessed within the last five hours.
+instead of days, respectively.
+
+Any fractional part of the difference between the access time and the
+current part in the appropriate units is ignored in the comparison.  For
+instance, `tt(echo *(ah-5))' would echo files accessed within the last
+five hours, while `tt(echo *(ah+5))' would echo files accessed at least
+six hours ago, as times strictly between five and six hours are treated
+as five hours.
 )
 item(tt(m)[tt(Mwhms)][tt(-)|tt(PLUS())]var(n))(
 like the file access qualifier, except that it uses the file modification