|
From: | Raffi Mohammed |
Subject: | [bug #31265] anewer not working consistently |
Date: | Wed, 06 Oct 2010 22:24:34 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3 |
URL: <http://savannah.gnu.org/bugs/?31265> Summary: anewer not working consistently Project: findutils Submitted by: soulonfire Submitted on: Wed 06 Oct 2010 10:24:33 PM GMT 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.1.20 Fixed Release: None _______________________________________________________ Details: Before I call a function I create a lock file for that function and inside the function I possibly create a tarball. In order to ensure the tarball is a new one and not a left over I check to ensure it's newer than the lock file. It doesn't seem to work consistently. I got around this problem by sleep'ing for 5 seconds and switching to newer from anewer. Was there a bug with this version of find ? sleep 1 # to ensure there is atleast a difference of a second if the time comparisons are done in seconds instead of milliseconds or finer. /opt/freeware/bin/find . -name file.tar -anewer function_lock.txt locate --version GNU locate version 4.1 AIX 5.3 _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?31265> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |