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

Re: [vincent@xxxxxxxxxx: Bug#185228: zsh: Incorrect filename generation with glob qualifier mh+]



On 2003-03-18 16:25:10 +0000, Bart Schaefer wrote:
> On Mar 17, 10:16pm, Clint Adams wrote:
> } Subject: [vincent@xxxxxxxxxx: Bug#185228: zsh: Incorrect filename generati
> }
> } ----- Forwarded message from Vincent Lefevre <vincent@xxxxxxxxxx> -----
> } 
> } Using the glob qualifier mh+n selects files modified more than
> } n+1 hours instead of more than n hours ago.
> } 
> } If this is a feature to make a partition with mh-n, mhn and mh+n,
> } then the wording in the manual should be changed
> 
> Unless I'm mistaken, this is all for compatibility with the way that
> "find" defines +n, -n and n.  If you ask me, it's always silly to
> define any meaning for "exactly <number> <timeunits> ago"; it always
> means "during the <timeunit> that began <number> <timeunits> before
> the current <timeunit> began" (but then for any significantly large
> unit you can get into arguments about what "began" means).  But zsh
> did not invent the nomenclature.

BTW, could zsh define <n and >n, that would have the intuitive
meaning? e.g. echo *(ah>5) would display the files accessed more
that 5 hours (= 18000 seconds) ago.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



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