bugfindutils - Bugs: bug #42164, Confusing min and time...

 
 

bug #42164: Confusing min and time interpretations

Submitted by:  None
Submitted on:  Tue 22 Apr 2014 11:51:25 AM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Originator Name: Mike NagieOriginator Email: -unavailable-
Open/Closed: OpenRelease: None
Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 22 Apr 2014 11:51:25 AM UTC, original submission:

Hi all!

We have found recently a bug in find command.
min should represents the minutes and time the days.

For example (on Arch linux) :

touch today ; find . -mtime 0 will find it because 0 means today.

result: ./today

touch today ; find . -mtime -1 should mean the same, just like the result: ./today

touch today ; find . -mtime +1 doesn't find it, because this searches older than 1 day files

NOW, the problem is with the *min

touch now ; find . -mmin 0 and the result is nothing.
touch now ; find . -mmin 1 found it now.

(however on BSD: touch now ; find . -mmin 0 result: ./now)

So the problem is:
find something that is older than 1 day is find . -*time +0
find something that is older than 1 minute is find . -*min +1

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup