On 8/14/13 4:41 PM, Jacek Krüger wrote: > According to the manual of bash > file1 -nt file2 > True if file1 is newer (according to modification date) than file2, or if > file1 exists and file2 does not > > Bash is innacurate when testing modification dates. It ignores fractions of > a second. Is it expected? Coreutils test does it properly.
Bash-4.3 will use struct timespec and nanosecond granularity if it's available and in struct stat. Bash-4.2 used the traditional time_t members. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/