Has the GNU coreutils (8.6) version of stat
changed? After a recent update, some scripts I wrote that call stat are not working as expected; in particular, I had been making use of stat -c %Y "${filename}"
. This is supposed to return the time of last modification in the form of seconds since "Epoch". However, I could have sworn this used to take the form of a whole integer. However, I'm now getting output from this of the form 1287630625.956667227
rather than 1287630625
. Since Bash can't handle floating point arithmetic, this is a litttle annoying. Is this a deliberate change? Or a bug? Or has my memory gone fuzzy? I tried searching for information on this, but couldn't find anything.
Has the GNU coreutils stat tool changed
coreutilsgnustat
Best Answer
stat: print timestamps to full resolution was committed to coreutils-8.6.