Re: [head tinderbox] failure on amd64/amd64

From: Ruslan Ermilov <ru_at_freebsd.org>
Date: Thu, 21 Aug 2008 15:30:16 +0400
Hi,

On Thu, Aug 21, 2008 at 01:21:31PM +0200, Dag-Erling Sm??rgrav wrote:
> Ruslan Ermilov <ru_at_freebsd.org> writes:
> > -mtime -0s (note the minus before "0s").
> 
> The find(1) man page does not document the semantics of negative
> arguments.  Feel free to correct it.
> 
It does, but the semantics isn't "negative".  A quote:

: All primaries which take a numeric argument allow the number
: to be preceded by a plus sign (``+'') or a minus sign (``-'').
: A preceding plus sign means ``more than n'', a preceding minus
: sign means ``less than n'' and neither means ``exactly n''.

So, -0s would mean that the difference between the current time
and file's modification time is negative.

> I would still prefer to have the test removed.
> 
The reason it was added is to catch common cases of date/time
being set to point to the past.


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer
Received on Thu Aug 21 2008 - 09:31:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:34 UTC