From unknown Sun Jun 22 22:45:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69979: [PATCH][doc] ls -l doc and size -> maj, min for device files Resent-From: Stephane Chazelas Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 24 Mar 2024 12:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69979 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: patch To: 69979@debbugs.gnu.org X-Debbugs-Original-To: submit@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171128215527898 (code B ref -1); Sun, 24 Mar 2024 12:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Mar 2024 12:09:15 +0000 Received: from localhost ([127.0.0.1]:53459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roMf0-0007Fg-Gq for submit@debbugs.gnu.org; Sun, 24 Mar 2024 08:09:14 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:34525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roMet-0007F4-6j for submit@debbugs.gnu.org; Sun, 24 Mar 2024 08:09:08 -0400 Received: from relay8-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::228]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 1A942C29BE for ; Sun, 24 Mar 2024 10:06:33 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id B045F1BF203 for ; Sun, 24 Mar 2024 10:06:12 +0000 (UTC) Date: Sun, 24 Mar 2024 10:06:11 +0000 From: Stephane Chazelas Message-ID: <20240324100611.pmspac3toqs2vim4@chazelas.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="g2gp35ekvdrlu7jd" Content-Disposition: inline X-GND-Sasl: stephane@chazelas.org X-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) --g2gp35ekvdrlu7jd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --g2gp35ekvdrlu7jd Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="doc-ls-maj-min-for-devices.diff" 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}) --g2gp35ekvdrlu7jd-- From unknown Sun Jun 22 22:45:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#69979: [PATCH-v2][doc] ls -l doc and size -> maj, min for device files Resent-From: Stephane Chazelas Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sun, 24 Mar 2024 12:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69979 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: patch To: 69979@debbugs.gnu.org Received: via spool by 69979-submit@debbugs.gnu.org id=B69979.17112849273633 (code B ref 69979); Sun, 24 Mar 2024 12:56:01 +0000 Received: (at 69979) by debbugs.gnu.org; 24 Mar 2024 12:55:27 +0000 Received: from localhost ([127.0.0.1]:56451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roNNc-0000w7-VV for submit@debbugs.gnu.org; Sun, 24 Mar 2024 08:55:27 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51111) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roNA7-0000GC-Cp for 69979@debbugs.gnu.org; Sun, 24 Mar 2024 08:41:21 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 72859E0002 for <69979@debbugs.gnu.org>; Sun, 24 Mar 2024 12:40:09 +0000 (UTC) Date: Sun, 24 Mar 2024 12:40:08 +0000 From: Stephane Chazelas Message-ID: <20240324124008.2ptie4pzsu6zuxop@chazelas.org> References: <20240324100611.pmspac3toqs2vim4@chazelas.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="e4vyjjvqn5v6253a" Content-Disposition: inline In-Reply-To: X-GND-Sasl: stephane@chazelas.org X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --e4vyjjvqn5v6253a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --e4vyjjvqn5v6253a Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="doc-ls-maj-min-for-devices-v2.diff" 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 --e4vyjjvqn5v6253a-- From unknown Sun Jun 22 22:45:29 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Stephane Chazelas Subject: bug#69979: closed (Re: bug#69979: [PATCH-v2][doc] ls -l doc and size -> maj, min for device files) Message-ID: References: <8154af0d-b184-5765-a969-0be610823a83@draigBrady.com> <20240324100611.pmspac3toqs2vim4@chazelas.org> X-Gnu-PR-Message: they-closed 69979 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: patch Reply-To: 69979@debbugs.gnu.org Date: Sun, 24 Mar 2024 18:06:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1711303562-26762-1" This is a multi-part message in MIME format... ------------=_1711303562-26762-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 69979@debbugs.gnu.org. --=20 69979: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D69979 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1711303562-26762-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 69979-done) by debbugs.gnu.org; 24 Mar 2024 18:05:05 +0000 Received: from localhost ([127.0.0.1]:47356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roSDQ-0006w9-HM for submit@debbugs.gnu.org; Sun, 24 Mar 2024 14:05:04 -0400 Received: from mail-lf1-f49.google.com ([209.85.167.49]:44464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roSDO-0006vb-ES for 69979-done@debbugs.gnu.org; Sun, 24 Mar 2024 14:05:03 -0400 Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-512e4f4e463so3880234e87.1 for <69979-done@debbugs.gnu.org>; Sun, 24 Mar 2024 11:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711303394; x=1711908194; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=BZ1u2g4pLUeVKzgV0svnac34slZOGHD6ZNyffSij71Q=; b=F0lD2d27aCMn3g+BAWdVSLuZF/LtrbD4tA8PuSgCtV/2ik+AKfK18XifxhkTJTAfwN nVLCfYzKo46XeL/iRH09YR/uFn/6pgDkvPfFFFSbVCHnlkfjtkIKIYy5xQdWzWZ5cJol iuMQjmu4lQorULhvt2bhSHbVk4+W7JDBzrCR9wniqN5cfTpoSyPb7hvVpUBiT+KZCfDB jFA6gmRgb/f7SpJEDm9OBBXrmRgiCKnl9jLT/Z2Y20xTOzT8qg/mzIq4MaY8LTfd2nke h4vR0ArhNysSND1O3D0sQF3PXWAxDbquJWeed5YNVXbkjZugi7w7sE1sfXQzMZSbdsRh loJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711303394; x=1711908194; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BZ1u2g4pLUeVKzgV0svnac34slZOGHD6ZNyffSij71Q=; b=euxCL6XWONiQcY6Vcm4u/9KZgCNoizOd3MyBR7Ynep1bdReHUrMnErIKYWaQdZCT4a aOuJFMzuXbkYEOaSLdlG6NxzlMV4nSD8VO8Xgdt82KSnG4AyotuQNhnby6GKak8O/q1R Kp2D0LlN77akhRki443VcqFdc3YX0sT9O+csJHVb0A7OTm6nMgIN1zcPduioyXX9TNS7 eCbxJtc2yS2ujbk3vzBhPusyzSRS517XYtQd4YxHYZYFMFgUHBbDhe2YaQmM4AS8eqxn t0xdC0qm/UwlWyHSLgoiDRUgIu2XVc+S6LjJ4tzEDdZW/iIPjsQXWmEYbQDaClh8Fmxo lxMg== X-Forwarded-Encrypted: i=1; AJvYcCWNcqLn6J5RxCknowwmRjTe3HySGD9XZVXoubiHykG1o+qsfkKWBOLVPH1fZUFmkD1t6mUIdzesaTinODx30BEdRGzsojosIInYDg== X-Gm-Message-State: AOJu0YycGyA9DQDmTKqWZxq99QqPMSJXUsempTXxLnC0TZnUJnYBHCeg +Mu1wkE4+PJEhLoeADSuPE9MLhl+nfRkaEA0tnhUF649njspxy9h X-Google-Smtp-Source: AGHT+IF5xApsGu7PNDOISah5PPRujUHxh+TOaQs0DNrlvHup7DfE+fyx+hjl3zk3+vVrpiYTB024eA== X-Received: by 2002:a05:6512:3119:b0:513:cebb:cf19 with SMTP id n25-20020a056512311900b00513cebbcf19mr3278879lfb.53.1711303394252; Sun, 24 Mar 2024 11:03:14 -0700 (PDT) Received: from [192.168.1.39] (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146]) by smtp.googlemail.com with ESMTPSA id g14-20020a05600c310e00b004147ec48845sm5788258wmo.26.2024.03.24.11.03.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 24 Mar 2024 11:03:13 -0700 (PDT) Message-ID: <8154af0d-b184-5765-a969-0be610823a83@draigBrady.com> Date: Sun, 24 Mar 2024 18:03:12 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#69979: [PATCH-v2][doc] ls -l doc and size -> maj, min for device files Content-Language: en-US To: Stephane Chazelas , 69979-done@debbugs.gnu.org References: <20240324100611.pmspac3toqs2vim4@chazelas.org> <20240324124008.2ptie4pzsu6zuxop@chazelas.org> From: =?UTF-8?Q?P=C3=A1draig_Brady?= In-Reply-To: <20240324124008.2ptie4pzsu6zuxop@chazelas.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 69979-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) 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 ------------=_1711303562-26762-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 24 Mar 2024 12:09:15 +0000 Received: from localhost ([127.0.0.1]:53459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roMf0-0007Fg-Gq for submit@debbugs.gnu.org; Sun, 24 Mar 2024 08:09:14 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:34525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roMet-0007F4-6j for submit@debbugs.gnu.org; Sun, 24 Mar 2024 08:09:08 -0400 Received: from relay8-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::228]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 1A942C29BE for ; Sun, 24 Mar 2024 10:06:33 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id B045F1BF203 for ; Sun, 24 Mar 2024 10:06:12 +0000 (UTC) Date: Sun, 24 Mar 2024 10:06:11 +0000 From: Stephane Chazelas To: submit@debbugs.gnu.org Subject: [PATCH][doc] ls -l doc and size -> maj, min for device files Message-ID: <20240324100611.pmspac3toqs2vim4@chazelas.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="g2gp35ekvdrlu7jd" Content-Disposition: inline X-GND-Sasl: stephane@chazelas.org X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) --g2gp35ekvdrlu7jd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --g2gp35ekvdrlu7jd Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="doc-ls-maj-min-for-devices.diff" 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}) --g2gp35ekvdrlu7jd-- ------------=_1711303562-26762-1--