Bug 151496 - coreutils outdated - here "stat" does not correctly recognize '\n' in format string
Summary: coreutils outdated - here "stat" does not correctly recognize '\n' in format ...
Status: RESOLVED INVALID
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Andreas Schwab
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-16 14:02 UTC by Torsten Finke
Modified: 2006-02-20 18:13 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.