zsh-workers
 help / color / mirror / code / Atom feed
* Re: MAIL, MAILPATH and maildir support
@ 1999-06-04  9:48 Sven Wischnowsky
  1999-06-05  8:31 ` PATCH: Document that a,c,m glob qualifiers can handle time in seconds Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Wischnowsky @ 1999-06-04  9:48 UTC (permalink / raw)
  To: zsh-workers


Peter Stephenson wrote:

> A module with more powerful mail commands is a reasonable idea, but I have
> some reservations.  First, if this is going to be a largish add-on, basic
> UNIX mail-file checking (as it currently exists) should probably stay in
> the basic shell, since pretty much everybody (? I presume) uses that

Err... ahem. I always feared that I'm not normal.

> --- maybe (ms???) should work too, but it doesn't at the moment);

Now that's a weird omission. Why didn't I... (computers were slower at 
that time, but...)


Bye
 Sven

--- os/glob.c	Tue Jun  1 11:28:26 1999
+++ Src/glob.c	Fri Jun  4 11:40:04 1999
@@ -97,6 +97,7 @@
 #define TT_MINS 2
 #define TT_WEEKS 3
 #define TT_MONTHS 4
+#define TT_SECONDS 5
 
 #define TT_BYTES 0
 #define TT_POSIX_BLOCKS 1
@@ -1615,6 +1616,8 @@
 				units = TT_WEEKS, ++s;
 			    else if (*s == 'M')
 				units = TT_MONTHS, ++s;
+			    else if (*s == 's')
+				units = TT_SECONDS, ++s;
 			}
 			/* See if it's greater than, equal to, or less than */
 			if ((range = *s == '+' ? 1 : *s == '-' ? -1 : 0))

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* PATCH: Document that a,c,m glob qualifiers can handle time in seconds
  1999-06-04  9:48 MAIL, MAILPATH and maildir support Sven Wischnowsky
@ 1999-06-05  8:31 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1999-06-05  8:31 UTC (permalink / raw)
  To: zsh-workers

On Jun 4, 11:48am, Sven Wischnowsky wrote:
} Subject: Re: MAIL, MAILPATH and maildir support
}
} > --- maybe (ms???) should work too, but it doesn't at the moment);
} 
} Now that's a weird omission. Why didn't I... (computers were slower at 
} that time, but...)

Here's documentation for that change.

Index: Doc/Zsh/expn.yo
===================================================================
@@ -1380,21 +1380,21 @@
 item(tt(g)var(id))(
 like tt(u)var(id) but with group IDs or names
 )
-item(tt(a)[tt(Mwhm)][tt(-)|tt(PLUS())]var(n))(
-files accessed exactly var(n) days ago.  Files accessed within the
-last var(n) days are selected using a negative value for var(n)
-(tt(-)var(n)).  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)' or `tt(m)' (e.g. `tt(ah5)') cause the check to be
-performed with months (of 30 days), weeks, hours, or minutes instead of
-days, respectively.  For instance, `tt(echo *(ah-5))' would echo files
-accessed within the last five hours.
+item(tt(a)[tt(Mwhms)][tt(-)|tt(PLUS())]var(n))(
+files accessed exactly var(n) days ago.  Files accessed within the last
+var(n) days are selected using a negative value for var(n) (tt(-)var(n)).
+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.
 )
-item(tt(m)[tt(Mwhm)][tt(-)|tt(PLUS())]var(n))(
+item(tt(m)[tt(Mwhms)][tt(-)|tt(PLUS())]var(n))(
 like the file access qualifier, except that it uses the file modification
 time.
 )
-item(tt(c)[tt(Mwhm)][tt(-)|tt(PLUS())]var(n))(
+item(tt(c)[tt(Mwhms)][tt(-)|tt(PLUS())]var(n))(
 like the file access qualifier, except that it uses the file inode change
 time.
 )

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-06-05  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-04  9:48 MAIL, MAILPATH and maildir support Sven Wischnowsky
1999-06-05  8:31 ` PATCH: Document that a,c,m glob qualifiers can handle time in seconds Bart Schaefer

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).