Subject: bug#7365: closed (Re: bug#7365: stat bug: %Z appends .000000000)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 14 Nov 2010 18:05:02 +0000

Your bug report

#7365: stat bug: %Z appends .000000000

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
7365: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7365
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#7365: stat bug: %Z appends .000000000
From: Jim Meyering <[email-masked]>
To: IgnorantGuru <[email-masked]>
Cc: Eric Blake <[email-masked]>, [email-masked]
Date: Sun, 14 Nov 2010 19:09:07 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

IgnorantGuru wrote:
> Thanks for the explanation - I definitely think maintaining backward
> compatibility is a better approach.  There is far too much breakage of
> software in linux as it is.

coreutils-8.7 (just released) is better in this respect.
I'm marking this issue as "done".

Subject: stat bug: %Z appends .000000000
From: IgnorantGuru <[email-masked]>
To: [email-masked]
Cc: IgnorantGuru <[email-masked]>
Date: Wed, 10 Nov 2010 07:59:13 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

$ stat -c %Z examplefile 
1289397609.000000000

stat (GNU coreutils) 8.6 installed from Arch Linux repos, executing in a bash shell.

This behavior changed recently - didn't used to have the .000000000 which breaks scripts that use stat.  eg
line 297: ((: 1289301692.000000000: syntax error: invalid arithmetic operator (error token is ".000000000")