zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.dk
Cc: 185228-forwarded@bugs.debian.org
Subject: [vincent@vinc17.org: Bug#185228: zsh: Incorrect filename generation with glob qualifier mh+]
Date: Mon, 17 Mar 2003 22:16:15 -0500	[thread overview]
Message-ID: <20030318031615.GG29480@acolyte.scowler.net> (raw)

----- Forwarded message from Vincent Lefevre <vincent@vinc17.org> -----

Using the glob qualifier mh+n selects files modified more than
n+1 hours instead of more than n hours ago. For instance:

ay:~/zshtst> ls -lgot *                                                <2:47:04
-rw-r--r--    1    52954 2003-03-18 02:30 tst-1047861059-68-2-batch.results
-rw-r--r--    1    57580 2003-03-18 02:29 tst-1047861059-37-2-batch.results
-rw-r--r--    1   147253 2003-03-18 02:26 tst-1047861059-38-2-batch.results
-rw-r--r--    1      121 2003-03-18 02:26 tst-1047861059-38-3-batch.results
-rw-r--r--    1   149771 2003-03-18 00:54 tst-1047861059-68-1-batch.results
-rw-r--r--    1   152224 2003-03-18 00:51 tst-1047861059-67-4-batch.results
-rw-r--r--    1   148653 2003-03-17 23:23 tst-1047861059-67-3-batch.results
-rw-r--r--    1   147979 2003-03-17 22:01 tst-1047861059-67-2-batch.results
-rw-r--r--    1   147419 2003-03-17 22:01 tst-1047861059-37-1-batch.results
-rw-r--r--    1   148014 2003-03-17 20:44 tst-1047861059-67-1-batch.results
-rw-r--r--    1   144904 2003-03-17 19:13 tst-1047861059-18-4-batch.results
-rw-r--r--    1   149671 2003-03-17 18:39 tst-1047861059-17-4-batch.results
-rw-r--r--    1   149066 2003-03-17 18:32 tst-1047861059-38-1-batch.results
ay:~/zshtst> ls -lgot *(mh+0)                                          <2:47:10
-rw-r--r--    1   149771 2003-03-18 00:54 tst-1047861059-68-1-batch.results
-rw-r--r--    1   152224 2003-03-18 00:51 tst-1047861059-67-4-batch.results
-rw-r--r--    1   148653 2003-03-17 23:23 tst-1047861059-67-3-batch.results
-rw-r--r--    1   147979 2003-03-17 22:01 tst-1047861059-67-2-batch.results
-rw-r--r--    1   147419 2003-03-17 22:01 tst-1047861059-37-1-batch.results
-rw-r--r--    1   148014 2003-03-17 20:44 tst-1047861059-67-1-batch.results
-rw-r--r--    1   144904 2003-03-17 19:13 tst-1047861059-18-4-batch.results
-rw-r--r--    1   149671 2003-03-17 18:39 tst-1047861059-17-4-batch.results
-rw-r--r--    1   149066 2003-03-17 18:32 tst-1047861059-38-1-batch.results
ay:~/zshtst> ls -lgot *(mh+1)                                          <2:47:12
-rw-r--r--    1   148653 2003-03-17 23:23 tst-1047861059-67-3-batch.results
-rw-r--r--    1   147979 2003-03-17 22:01 tst-1047861059-67-2-batch.results
-rw-r--r--    1   147419 2003-03-17 22:01 tst-1047861059-37-1-batch.results
-rw-r--r--    1   148014 2003-03-17 20:44 tst-1047861059-67-1-batch.results
-rw-r--r--    1   144904 2003-03-17 19:13 tst-1047861059-18-4-batch.results
-rw-r--r--    1   149671 2003-03-17 18:39 tst-1047861059-17-4-batch.results
-rw-r--r--    1   149066 2003-03-17 18:32 tst-1047861059-38-1-batch.results
ay:~/zshtst> ls -lgot *(mh+2)                                          <2:47:13
-rw-r--r--    1   148653 2003-03-17 23:23 tst-1047861059-67-3-batch.results
-rw-r--r--    1   147979 2003-03-17 22:01 tst-1047861059-67-2-batch.results
-rw-r--r--    1   147419 2003-03-17 22:01 tst-1047861059-37-1-batch.results
-rw-r--r--    1   148014 2003-03-17 20:44 tst-1047861059-67-1-batch.results
-rw-r--r--    1   144904 2003-03-17 19:13 tst-1047861059-18-4-batch.results
-rw-r--r--    1   149671 2003-03-17 18:39 tst-1047861059-17-4-batch.results
-rw-r--r--    1   149066 2003-03-17 18:32 tst-1047861059-38-1-batch.results
ay:~/zshtst> ls -lgot *(mh+3)                                          <2:47:15
-rw-r--r--    1   147979 2003-03-17 22:01 tst-1047861059-67-2-batch.results
-rw-r--r--    1   147419 2003-03-17 22:01 tst-1047861059-37-1-batch.results
-rw-r--r--    1   148014 2003-03-17 20:44 tst-1047861059-67-1-batch.results
-rw-r--r--    1   144904 2003-03-17 19:13 tst-1047861059-18-4-batch.results
-rw-r--r--    1   149671 2003-03-17 18:39 tst-1047861059-17-4-batch.results
-rw-r--r--    1   149066 2003-03-17 18:32 tst-1047861059-38-1-batch.results
ay:~/zshtst> ls -lgot *(mh+4)                                          <2:47:16
-rw-r--r--    1   148014 2003-03-17 20:44 tst-1047861059-67-1-batch.results
-rw-r--r--    1   144904 2003-03-17 19:13 tst-1047861059-18-4-batch.results
-rw-r--r--    1   149671 2003-03-17 18:39 tst-1047861059-17-4-batch.results
-rw-r--r--    1   149066 2003-03-17 18:32 tst-1047861059-38-1-batch.results
ay:~/zshtst> ls -lgot *(mh+5)                                          <2:47:18
-rw-r--r--    1   148014 2003-03-17 20:44 tst-1047861059-67-1-batch.results
-rw-r--r--    1   144904 2003-03-17 19:13 tst-1047861059-18-4-batch.results
-rw-r--r--    1   149671 2003-03-17 18:39 tst-1047861059-17-4-batch.results
-rw-r--r--    1   149066 2003-03-17 18:32 tst-1047861059-38-1-batch.results

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 to make things
clear. But IMHO, this would be inintuitive.


             reply	other threads:[~2003-03-18  3:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-18  3:16 Clint Adams [this message]
2003-03-18 16:25 ` Bart Schaefer
2005-07-11 12:17   ` Vincent Lefevre
2007-12-13 18:25     ` Clint Adams
2007-12-13 22:35       ` Peter Stephenson

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=20030318031615.GG29480@acolyte.scowler.net \
    --to=schizo@debian.org \
    --cc=185228-forwarded@bugs.debian.org \
    --cc=zsh-workers@sunsite.dk \
    /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).