From: Jim Meyering Date: Thu, 15 Dec 2005 12:24:54 +0000 (+0000) Subject: stat: revert behavior of --format=FMT (-c) X-Git-Tag: v6.0~1112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5124a296ab6933de387eb132b13ee8b301f01358;p=thirdparty%2Fcoreutils.git stat: revert behavior of --format=FMT (-c) stat: add new option: --printf=FMT --- diff --git a/NEWS b/NEWS index b50cbbe34c..4a1d4139b7 100644 --- 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