From unknown Sun Jun 22 22:41:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#69979 <69979@debbugs.gnu.org> To: bug#69979 <69979@debbugs.gnu.org> Subject: Status: [PATCH][doc] ls -l doc and size -> maj, min for device files Reply-To: bug#69979 <69979@debbugs.gnu.org> Date: Mon, 23 Jun 2025 05:41:28 +0000 retitle 69979 [PATCH][doc] ls -l doc and size -> maj, min for device files reassign 69979 coreutils submitter 69979 Stephane Chazelas severity 69979 normal tag 69979 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 24 08:09:15 2024 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-- From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 24 08:55:27 2024 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 To: 69979@debbugs.gnu.org Subject: [PATCH-v2][doc] ls -l doc and size -> maj, min for device files 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-Debbugs-Envelope-To: 69979 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 debbugs-submit-bounces@debbugs.gnu.org Sun Mar 24 14:05:04 2024 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 From unknown Sun Jun 22 22:41:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 22 Apr 2024 11:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator