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

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



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



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