[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #20139] -mtime -2 includes -mtime 2
From: |
Andreas Metzler |
Subject: |
[bug #20139] -mtime -2 includes -mtime 2 |
Date: |
Sun, 10 Jun 2007 08:30:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070510 Iceape/1.0.9 (Debian-1.0.9-0etch1) |
URL:
<http://savannah.gnu.org/bugs/?20139>
Summary: -mtime -2 includes -mtime 2
Project: findutils
Submitted by: ametzler
Submitted on: Sonntag 10.06.2007 um 10:30
Category: find
Severity: 3 - Normal
Item Group: Wrong result
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.3.7
Fixed Release: 4.3.7
_______________________________________________________
Details:
-mtime +n behaves different in 4.2.x than in 4.3.7. The older version
interprets -n as lower than, 4.3.7 as lower or equal:
(SID)address@hidden:/tmp/findtest$ ls -l ; date
total 0
-rw-rw-r-- 1 ametzler ametzler 0 Jun 3 22:00 2007-06-04
-rw-rw-r-- 1 ametzler ametzler 0 Jun 4 22:00 2007-06-05
-rw-rw-r-- 1 ametzler ametzler 0 Jun 5 22:00 2007-06-06
-rw-rw-r-- 1 ametzler ametzler 0 Jun 6 22:00 2007-06-07
-rw-rw-r-- 1 ametzler ametzler 0 Jun 7 22:00 2007-06-08
-rw-rw-r-- 1 ametzler ametzler 0 Jun 8 22:00 2007-06-09
-rw-rw-r-- 1 ametzler ametzler 0 Jun 9 22:00 2007-06-10
Sun Jun 10 08:24:32 GMT 2007
Now 4.2.30:
(SID)address@hidden:/tmp/findtest$ find --version
GNU find version 4.2.31
Built using GNU gnulib version 2007-02-24
(SID)address@hidden:/tmp/findtest$ find -mtime +2
./2007-06-07
./2007-06-05
./2007-06-04
./2007-06-06
(SID)address@hidden:/tmp/findtest$ find -mtime -2
.
./2007-06-10
./2007-06-09
(SID)address@hidden:/tmp/findtest$ find -mtime 2
./2007-06-08
OTOH 4.3.7:
(SID)address@hidden:/tmp/findtest$ /tmp/FIND/findutils-4.3.7/find/find
--version
GNU find version 4.3.7
Built using GNU gnulib version 2007-05-26
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS()
CBO(level=0)
(SID)address@hidden:/tmp/findtest$ /tmp/FIND/findutils-4.3.7/find/find
-mtime +2
./2007-06-07
./2007-06-05
./2007-06-04
./2007-06-06
(SID)address@hidden:/tmp/findtest$ /tmp/FIND/findutils-4.3.7/find/find
-mtime -2
.
./2007-06-10
./2007-06-09
./2007-06-08
(SID)address@hidden:/tmp/findtest$ /tmp/FIND/findutils-4.3.7/find/find
-mtime 2
./2007-06-08
Note how ./2007-06-08 is listed in 4.3.7's output.
cu andreas
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20139>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [bug #20139] -mtime -2 includes -mtime 2,
Andreas Metzler <=