Eric Blake <[EMAIL PROTECTED]> writes: > Even Linux > supports FAT, although I doubt anyone is foolhardy enough to develop on > FAT when there are so many better filesystems to choose from. But you > need at least 'sleep 2' to guarantee distinct timestamps on FAT.
I don't think this is really a problem nowadays. But if it is, let's do it right: let's use a combination of 'touch' and 'ls -t' to determine whether the file system supports 1-second time stamp resolution. If we do it right, we can reduce the sleep time to 1 microsecond on most modern sytems. In the mean time, sleeping for 1 second should suffice. The goal here is to avoid a tradition of tests that sleep. Sleeping slows things down. (And it's harder to parallelize. :-)