From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1989 invoked by alias); 10 Dec 2011 20:14:02 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29991 Received: (qmail 29613 invoked from network); 10 Dec 2011 20:14:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.43 is neither permitted nor denied by SPF record at ntlworld.com) X-ProxyUser-IP: 86.6.29.42 Date: Sat, 10 Dec 2011 20:13:50 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Documentation error Message-ID: <20111210201350.2941daf3@pws-pc.ntlworld.com> In-Reply-To: <20111210192647.21ca03f6@pws-pc.ntlworld.com> References: <20111210170956.GD8394@andrew.cmu.edu> <20111210174408.GE8394@andrew.cmu.edu> <20111210182912.3403de1b@pws-pc.ntlworld.com> <20111210192647.21ca03f6@pws-pc.ntlworld.com> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 10 Dec 2011 19:26:47 +0000 Peter Stephenson wrote: > (There could be perfectly well be a "d" modifier, too, to avoid suprises, > however. I seem to remember it's caught me in the past.) Can't see any harm; there's no clash with other syntax, since at least the number is mandatory. Index: Doc/Zsh/expn.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Doc/Zsh/expn.yo,v retrieving revision 1.140 diff -p -u -r1.140 expn.yo --- Doc/Zsh/expn.yo 28 Aug 2011 16:38:28 -0000 1.140 +++ Doc/Zsh/expn.yo 10 Dec 2011 20:11:50 -0000 @@ -2430,7 +2430,8 @@ Files accessed more than var(n) days ago 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. +instead of days, respectively. An explicit `tt(d)' for days is also +allowed. Any fractional part of the difference between the access time and the current part in the appropriate units is ignored in the comparison. For Index: Src/glob.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/glob.c,v retrieving revision 1.78 diff -p -u -r1.78 glob.c --- Src/glob.c 7 Dec 2011 01:31:21 -0000 1.78 +++ Src/glob.c 10 Dec 2011 20:11:50 -0000 @@ -1530,6 +1530,8 @@ zglob(LinkList list, LinkNode np, int no g_units = TT_MONTHS, ++s; else if (*s == 's') g_units = TT_SECONDS, ++s; + else if (*s == 'd') + ++s; } /* See if it's greater than, equal to, or less than */ if ((g_range = *s == '+' ? 1 : *s == '-' ? -1 : 0)) -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/