about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-12-11 17:48:26 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-12-11 17:48:26 +0000
commit290ab11885d7a3beb1b4158b4d8e6e5ed2b33e11 (patch)
treee8ac553da52130e5eb8e019eaa253d659639474c
parentacb97e611501c92cc176b2ca130ffab00cb6299d (diff)
downloadzsh-290ab11885d7a3beb1b4158b4d8e6e5ed2b33e11.tar.gz
zsh-290ab11885d7a3beb1b4158b4d8e6e5ed2b33e11.tar.xz
zsh-290ab11885d7a3beb1b4158b4d8e6e5ed2b33e11.zip
discussed in 29984: use m+7 for files more than a week old
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/compsys.yo2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 46af8feb6..c5355ef50 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-12-11  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* discussed in 29984: Doc/Zsh/compsys.yo: use m+7 for files
+	"more than a week old" since w+1 is a bit counterintuitive.
+
 	* 29991: Doc/Zsh/expn.yo, Src/glob.c: allow explicit 'd' for
 	days in time qualifiers.
 
@@ -15722,5 +15725,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5535 $
+* $Revision: 1.5536 $
 *****************************************************
diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 54c0d5db8..01c8625fc 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -3970,7 +3970,7 @@ Example:
 example(_example_caching_policy () {
     # rebuild if cache is more than a week old
     local -a oldp
-    oldp=( "$1"(Nmw+1) )
+    oldp=( "$1"(Nm+7) )
     (( $#oldp ))
 })
 )