Bug 151496

Summary: coreutils outdated - here "stat" does not correctly recognize '\n' in format string
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Torsten Finke <fi>
Component: BasesystemAssignee: Andreas Schwab <schwab>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Torsten Finke 2006-02-16 14:02:58 UTC
OpenSuSE 10.0 uses coreutils 5.3.0. 

The stat program contained in that version could not properly recognize format strings. Eg: running 

  stat -c '%x\n'

the trailing newline is ignored. 

Also on http://ftp.gnu.org/gnu/coreutils that version could not be found. 

A more recent version (eg 5.94) should be used.
Comment 1 Andreas Schwab 2006-02-20 15:21:08 UTC
There are no backslash escapes in -c.
Comment 2 Torsten Finke 2006-02-20 18:13:39 UTC
(In reply to comment #1)
> There are no backslash escapes in -c.
> that is right, but:
- in coreutils version 5.3.0 (as used in OpenSuSE 10.0) stat does not 
  output a newline after each line formatted by option -c. As of version 5.94
  it does. (A missing newline at the end of output is ugly - try it)
- in 5.94 stat has an extra option "--printf" that does interpret backslash 
  escapes.