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

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 24 Mar 2024 18:06:02 +0000

Your bug report

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

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
69979: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69979
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#69979: [PATCH-v2][doc] ls -l doc and size -> maj, min for device files
From: Pádraig Brady <[email-masked]>
To: Stephane Chazelas <[email-masked]>, [email-masked]
Date: Sun, 24 Mar 2024 18:03:12 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

On 24/03/2024 12:40, Stephane Chazelas wrote:
> 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.

Pushed.
Marking this as done.

thanks,
Pádraig

Subject: [PATCH][doc] ls -l doc and size -> maj, min for device files
From: Stephane Chazelas <[email-masked]>
To: [email-masked]
Date: Sun, 24 Mar 2024 10:06:11 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Package: coreutils
Version: 9.4
Tags: patch

The ls documentation currently doesn't state that for device
files, the size field in the long listing format is replaced by
major, minor.

Patch attached.

-- 
Stephane
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 8a2104831..c8e3bd110 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 a 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})