]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat: revert behavior of --format=FMT (-c)
authorJim Meyering <jim@meyering.net>
Thu, 15 Dec 2005 12:24:54 +0000 (12:24 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 15 Dec 2005 12:24:54 +0000 (12:24 +0000)
stat: add new option: --printf=FMT

NEWS

diff --git a/NEWS b/NEWS
index b50cbbe34c701d69bbc3c148cfba48c4bdfd3010..4a1d4139b71f8c2b0abbd31526108f231e81ffe9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,20 @@ GNU coreutils NEWS                                    -*- outline -*-
   sort now reports incompatible options (e.g., -i and -n) rather than
   silently ignoring one of them.
 
+  stat's --format=FMT option now works the way it did before 5.3.0:
+  FMT is automatically newline terminated.  The first stable release
+  containing this change was 5.92.
+
+  stat accepts the new option --printf=FMT, where FMT is *not*
+  automatically newline terminated.
+  works, backslash escapes in FMT *are* interpreted.
+
+  stat: backslash escapes are interpreted in a format string specified
+  via --printf=FMT, but not one specified via --format=FMT.  That includes
+  octal (\ooo, at most three octal digits), hexadecimal (\xhh, one or
+  two hex digits), and the standard sequences (\a, \b, \f, \n, \r, \t,
+  \v, \", \\).
+
 ** Scheduled for removal
 
   rm's --directory (-d) option is scheduled for removal in 2006.  This