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

Re: Bug in C02cont.ztst's -N test



On May 10,  2:32am, Jun T. wrote:
}
} On a system where the nanosecond timestamps are not supported
} in order for the test '$newnewnew -nt $zlnfs' to succeed,
} the mtime's of the two files should have at least 1 second
} difference.

Aha.  Now that you mention it, I recall that ...

} Why does the original code sleeps 2 sec (instead of 1 sec).

... in some cases "sleep 1" will only sleep to the next whole-number
of seconds on the system clock, rather than sleeping a full second.
So "sleep 2" is needed to always make it at least one full second.

I've committed your patch.



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