Subject: bug#69979: [PATCH-v2][doc] ls -l doc and size -> maj, min for device files

From: Stephane Chazelas <[email-masked]>
Date: Sun, 24 Mar 2024 12:40:08 +0000

Tags: patch

My bad, the patch was incorrect, it should have said
"replaced by the corresponding device major and minor numbers as two decimal
numbers separated by a comma and at least one space.", as
there's not always only once space between the major and minor.

See also
https://unix.stackexchange.com/questions/773014/where-do-i-find-documentation-for-the-output-of-ls-l
where the issue was reported and where the variations of output
formats between ls implementations is being mentioned.

New patch attached.
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 8a2104831..8f7f43ea0 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -7968,6 +7968,10 @@ that it is a number rather than a textual name.
 Print question marks for other information that
 cannot be determined.
 
+For block special files and character special files, the size field is
+replaced by the corresponding device major and minor numbers as two decimal
+numbers separated by a comma and at least one space.
+
 Normally the size is printed as a byte count without punctuation, but
 this can be overridden (@pxref{Block size}).
 For example, @option{--human-readable} (@option{-h})
diff --git a/gnulib b/gnulib
index af32ee824..32c16c45d 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit af32ee824ee18255839f9812b8ed61aa5257a82b
+Subproject commit 32c16c45d7378b014d9aac6130104c4d02a9acdb