Eric Blake <[email protected]> writes: > * src/stat.c (epoch_time): New function. > (print_stat): Use it for %[WXYZ]. > * NEWS: Document this. > * tests/touch/60-seconds: Adjust test to match. > --- > > It bugs me that %x has more information than %X in 'stat --format', > especially, since we don't support any format modifiers for getting > at the additional information. We're already incompatible with > BSD stat(1) format modifiers, and there is no standard for stat(1), > so I wasn't too worried about changing the meaning of existing > modifiers rather than burning new letters just for the nanosecond > portions. And now that POSIX 2008 requires nanonsecond resolution > in stat(2), you could argue that we should always be displaying it.
There are a lot of scripts that assume whole integer output from %[WXYZ]. It would have been better to make this optional and non-default. Andreas. -- Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
