Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Missing "--" in the "age" function



On Tue, 21 May 2013 20:10:22 +0100
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> 2013-05-21 16:19:28 +0100, Peter Stephenson:
> [...]
> 
> Thanks.
> 
> > +example(print *+LPAR()e-age :file1 :file2-+RPAR())
> > +
> > +This matches all files modified no earlier than tt(file1) and
> > +no later than tt(file2).
> [...]
> 
> In that case, shouldn't it be:
> 
> zstat -A tmp -F "%Y/%m/%d:%H:%M:%S"...
> 
> instead of 
> 
> zstat -A tmp -F "%Y/%m/%d"...

Hmm, it's a bit overloaded.  If you give an explicit date (just one),
you'd get files modified on that date; if you give a time as well the
start point moves up to that time; that's most useful with two arguments
to give a range.

Maybe the most convenient thing is if you give one :file argument it
uses the date, and if there is a second argument it uses the date and
time for both?

pws



Messages sorted by: Reverse Date, Date, Thread, Author