]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: NEWS: describe the stat file name quoting changes master
authorPádraig Brady <P@draigBrady.com>
Wed, 3 Jun 2026 17:06:11 +0000 (18:06 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 4 Jun 2026 13:00:33 +0000 (14:00 +0100)
Note also a previous discussion on stat quoting at:
https://bugs.gnu.org/23422

* NEWS: Describe the changes in behavior.

NEWS

diff --git a/NEWS b/NEWS
index 4dad878b039b317b5bdfb8afa637be461c3efbc5..40822ceccc3db2d0fcfab5f664ad07502b5d8c2c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -36,6 +36,12 @@ GNU coreutils NEWS                                    -*- outline -*-
   'ls' -w,--width no longer includes '\n' in the width of a line.
   I.e., the width or $COLUMNS is interpreted to be an _inclusive_ maximum.
 
+  'stat' now uses shell quoting when required, to more robustly escape
+  file names.  Previously it only quoted file names with the %N format.
+  The default quoting honors the QUOTING_STYLE env variable (like %N).
+  Also %Qn is a newly supported format combination to quote file names,
+  leaving the existing %n format for when quoting is not desired.
+
 ** Improvements
 
   'sort' will now better use available memory and parallel operation