zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: Documentation error
Date: Sat, 10 Dec 2011 20:13:50 +0000	[thread overview]
Message-ID: <20111210201350.2941daf3@pws-pc.ntlworld.com> (raw)
In-Reply-To: <20111210192647.21ca03f6@pws-pc.ntlworld.com>

On Sat, 10 Dec 2011 19:26:47 +0000
Peter Stephenson <p.w.stephenson@ntlworld.com> 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 <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


  parent reply	other threads:[~2011-12-10 20:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-10 17:09 gi1242+zsh
2011-12-10 17:37 ` Mikael Magnusson
2011-12-10 17:44   ` gi1242+zsh
2011-12-10 18:29     ` Peter Stephenson
2011-12-10 18:54       ` Mikael Magnusson
2011-12-10 19:26         ` Peter Stephenson
2011-12-10 20:02           ` PATCH: _globquals: Say what the digit is when completing modification time qualifiers Mikael Magnusson
2011-12-13 19:23             ` PATCH: _globquals: Say what the digit is when completing time qualifiers, add d Mikael Magnusson
2011-12-13 21:27               ` Peter Stephenson
2011-12-10 20:13           ` Peter Stephenson [this message]
2011-12-11  2:22             ` Documentation error gi1242+zsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111210201350.2941daf3@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).