From unknown Sat Aug 09 04:59:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30717: i miss some ls-features Resent-From: kalle Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Mon, 05 Mar 2018 21:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30717 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 30717@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152028375821468 (code B ref -1); Mon, 05 Mar 2018 21:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Mar 2018 21:02:38 +0000 Received: from localhost ([127.0.0.1]:46289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esxFm-0005aC-77 for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:02:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esxFk-0005Zy-49 for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:02:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esxFe-0001dJ-BR for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:02:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1esxFe-0001d9-84 for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:02:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esxFd-0008Al-4n for bug-coreutils@gnu.org; Mon, 05 Mar 2018 16:02:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esxFZ-0001aN-8H for bug-coreutils@gnu.org; Mon, 05 Mar 2018 16:02:29 -0500 Received: from mail.netzguerilla.net ([217.11.57.120]:59977) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1esxFY-0001ZH-UA for bug-coreutils@gnu.org; Mon, 05 Mar 2018 16:02:25 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.netzguerilla.net (Postfix) with ESMTP id CC365100014 for ; Mon, 5 Mar 2018 22:02:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at netzguerilla.net Received: from mail.netzguerilla.net ([IPv6:2a00:1828:2000:612::25]) by localhost (sal.netzguerilla.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id Qqmq5gbUEB6H for ; Mon, 5 Mar 2018 22:02:20 +0100 (CET) Received: from [IPv6:2003:dd:ff0c:7c01:5183:1e65:5b93:ab82] (p200300DDFF0C7C0151831E655B93AB82.dip0.t-ipconnect.de [IPv6:2003:dd:ff0c:7c01:5183:1e65:5b93:ab82]) by mail.netzguerilla.net (Postfix) with ESMTPSA id 896A9100012 for ; Mon, 5 Mar 2018 22:02:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=projektwerkstatt.de; s=fckp; t=1520283740; bh=9Znx3hO+5EECjh5H/s3yYDrW+mmfr1EVzUQVMMmGxBA=; h=To:From:Subject:Date:From; b=mJrH/v7eMfc4QTFl/00+j5TikpC9kzv+EAHDkarEyUcoU9a+N2YqIhpSBrWvLJheB C0jBcDFvw0ET9U/RlojIGS4nZ9SAFzCtZkOZKmBODnFF7qLvlkk0vNDZB1R5aPx2ev FMrKXVZv3+8NsNOcdkXYe8PDzA29rL2kMGIRb0kERu8rilk8hGecTDPuK19Ph9fOKD lGhS3SgTlaoICl4BVTkIk4H3Gpyw6/hwq7gFyOZgeCUTFU8sZxxrQec8alrFvFzbah EdxcOkwZUyEydiM757W9QzCdFfukrpVNZehnkzm0vjVWqdNLpXy1ct8++ifexEIBYs FCvFgjge8l1JQ== From: kalle Message-ID: Date: Mon, 5 Mar 2018 22:01:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) hello I wonder why for the ls-command I don't find the following features, I consider important: - list the size of files. For directories, list the total size of the tree beneath them - for ls -R (recursive presentation) limit it to a certain depth greetings, kalle From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 05 16:16:37 2018 Received: (at control) by debbugs.gnu.org; 5 Mar 2018 21:16:37 +0000 Received: from localhost ([127.0.0.1]:46305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esxTJ-0005vO-Az for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:16:37 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43352 helo=mx1.redhat.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esxTG-0005uy-4F; Mon, 05 Mar 2018 16:16:34 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AC2B4401CC41; Mon, 5 Mar 2018 21:16:28 +0000 (UTC) Received: from [10.10.125.187] (ovpn-125-187.rdu2.redhat.com [10.10.125.187]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2E2FB2144B20; Mon, 5 Mar 2018 21:16:28 +0000 (UTC) Subject: Re: bug#30717: i miss some ls-features To: kalle , 30717-done@debbugs.gnu.org References: From: Eric Blake Organization: Red Hat, Inc. Message-ID: Date: Mon, 5 Mar 2018 15:16:27 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 05 Mar 2018 21:16:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 05 Mar 2018 21:16:28 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'eblake@redhat.com' RCPT:'' X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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: -2.3 (--) tag 30717 notabug thanks On 03/05/2018 03:01 PM, kalle wrote: > hello > I wonder why for the ls-command I don't find the following features, I > consider important: > - list the size of files. For directories, list the total size of the > tree beneath them Because this feature is already provided by the 'du' tool. > - for ls -R (recursive presentation) limit it to a certain depth > greetings, Because this feature is already provided by the 'find' tool. One philosophy of Unix design is that each tool should do one thing well, rather than trying to repeat functionality already present elsewhere. As such, I'm marking this as not a bug in the coreutils database, but you are welcome to continue conversation if you think you have strong arguments for changing ls. Note that if there is an alternative implementation of ls (such as BSD ls) that does what you want via a particular command line option, then that is a much stronger argument for teaching coreutils ls to do the same thing. But merely adding something to ls that can already be accomplished by another standardized tool is probably just going to be bloat to an already large 'ls' binary. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org From unknown Sat Aug 09 04:59:43 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: kalle Subject: bug#30717: closed (Re: bug#30717: i miss some ls-features) Message-ID: References: X-Gnu-PR-Message: they-closed 30717 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: notabug Reply-To: 30717@debbugs.gnu.org Date: Mon, 05 Mar 2018 21:17:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1520284625-22828-1" This is a multi-part message in MIME format... ------------=_1520284625-22828-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #30717: i miss some ls-features 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 30717@debbugs.gnu.org. --=20 30717: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30717 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1520284625-22828-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 30717-done) by debbugs.gnu.org; 5 Mar 2018 21:16:35 +0000 Received: from localhost ([127.0.0.1]:46303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esxTH-0005vF-3A for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:16:35 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43352 helo=mx1.redhat.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esxTG-0005uy-4F; Mon, 05 Mar 2018 16:16:34 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AC2B4401CC41; Mon, 5 Mar 2018 21:16:28 +0000 (UTC) Received: from [10.10.125.187] (ovpn-125-187.rdu2.redhat.com [10.10.125.187]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2E2FB2144B20; Mon, 5 Mar 2018 21:16:28 +0000 (UTC) Subject: Re: bug#30717: i miss some ls-features To: kalle , 30717-done@debbugs.gnu.org References: From: Eric Blake Organization: Red Hat, Inc. Message-ID: Date: Mon, 5 Mar 2018 15:16:27 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 05 Mar 2018 21:16:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 05 Mar 2018 21:16:28 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'eblake@redhat.com' RCPT:'' X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 30717-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: -2.3 (--) tag 30717 notabug thanks On 03/05/2018 03:01 PM, kalle wrote: > hello > I wonder why for the ls-command I don't find the following features, I > consider important: > - list the size of files. For directories, list the total size of the > tree beneath them Because this feature is already provided by the 'du' tool. > - for ls -R (recursive presentation) limit it to a certain depth > greetings, Because this feature is already provided by the 'find' tool. One philosophy of Unix design is that each tool should do one thing well, rather than trying to repeat functionality already present elsewhere. As such, I'm marking this as not a bug in the coreutils database, but you are welcome to continue conversation if you think you have strong arguments for changing ls. Note that if there is an alternative implementation of ls (such as BSD ls) that does what you want via a particular command line option, then that is a much stronger argument for teaching coreutils ls to do the same thing. But merely adding something to ls that can already be accomplished by another standardized tool is probably just going to be bloat to an already large 'ls' binary. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org ------------=_1520284625-22828-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Mar 2018 21:02:38 +0000 Received: from localhost ([127.0.0.1]:46289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esxFm-0005aC-77 for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:02:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1esxFk-0005Zy-49 for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:02:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esxFe-0001dJ-BR for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:02:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1esxFe-0001d9-84 for submit@debbugs.gnu.org; Mon, 05 Mar 2018 16:02:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esxFd-0008Al-4n for bug-coreutils@gnu.org; Mon, 05 Mar 2018 16:02:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esxFZ-0001aN-8H for bug-coreutils@gnu.org; Mon, 05 Mar 2018 16:02:29 -0500 Received: from mail.netzguerilla.net ([217.11.57.120]:59977) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1esxFY-0001ZH-UA for bug-coreutils@gnu.org; Mon, 05 Mar 2018 16:02:25 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.netzguerilla.net (Postfix) with ESMTP id CC365100014 for ; Mon, 5 Mar 2018 22:02:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at netzguerilla.net Received: from mail.netzguerilla.net ([IPv6:2a00:1828:2000:612::25]) by localhost (sal.netzguerilla.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id Qqmq5gbUEB6H for ; Mon, 5 Mar 2018 22:02:20 +0100 (CET) Received: from [IPv6:2003:dd:ff0c:7c01:5183:1e65:5b93:ab82] (p200300DDFF0C7C0151831E655B93AB82.dip0.t-ipconnect.de [IPv6:2003:dd:ff0c:7c01:5183:1e65:5b93:ab82]) by mail.netzguerilla.net (Postfix) with ESMTPSA id 896A9100012 for ; Mon, 5 Mar 2018 22:02:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=projektwerkstatt.de; s=fckp; t=1520283740; bh=9Znx3hO+5EECjh5H/s3yYDrW+mmfr1EVzUQVMMmGxBA=; h=To:From:Subject:Date:From; b=mJrH/v7eMfc4QTFl/00+j5TikpC9kzv+EAHDkarEyUcoU9a+N2YqIhpSBrWvLJheB C0jBcDFvw0ET9U/RlojIGS4nZ9SAFzCtZkOZKmBODnFF7qLvlkk0vNDZB1R5aPx2ev FMrKXVZv3+8NsNOcdkXYe8PDzA29rL2kMGIRb0kERu8rilk8hGecTDPuK19Ph9fOKD lGhS3SgTlaoICl4BVTkIk4H3Gpyw6/hwq7gFyOZgeCUTFU8sZxxrQec8alrFvFzbah EdxcOkwZUyEydiM757W9QzCdFfukrpVNZehnkzm0vjVWqdNLpXy1ct8++ifexEIBYs FCvFgjge8l1JQ== To: bug-coreutils@gnu.org From: kalle Subject: i miss some ls-features Message-ID: Date: Mon, 5 Mar 2018 22:01:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -5.0 (-----) hello I wonder why for the ls-command I don't find the following features, I consider important: - list the size of files. For directories, list the total size of the tree beneath them - for ls -R (recursive presentation) limit it to a certain depth greetings, kalle ------------=_1520284625-22828-1--