X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: L A Walsh <coreutils@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Wed, 11 Aug 2021 06:58:02 +0000 Resent-Message-ID: <handler.49994.B.162866506032239 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 49994 <at> debbugs.gnu.org X-Debbugs-Original-To: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.162866506032239 (code B ref -1); Wed, 11 Aug 2021 06:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Aug 2021 06:57:40 +0000 Received: from localhost ([127.0.0.1]:33099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mDiB7-0008Nk-6p for submit <at> debbugs.gnu.org; Wed, 11 Aug 2021 02:57:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:60716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <coreutils@HIDDEN>) id 1mDiAz-0008NW-U1 for submit <at> debbugs.gnu.org; Wed, 11 Aug 2021 02:57:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mDiAz-0002Kw-Ks for bug-coreutils@HIDDEN; Wed, 11 Aug 2021 02:57:21 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:41156 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mDiAx-0002r9-Ft for bug-coreutils@HIDDEN; Wed, 11 Aug 2021 02:57:21 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 17B6uMRN037866 for <bug-coreutils@HIDDEN>; Tue, 10 Aug 2021 23:56:24 -0700 Message-ID: <61137488.8060406@HIDDEN> Date: Tue, 10 Aug 2021 23:56:08 -0700 From: L A Walsh <coreutils@HIDDEN> User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@HIDDEN; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) How can I find all perl source files under the perl source tree sorted by size + displayed w/binary-metric prefixes. I wanted to look for a good sample for _some_ specific size (not sure of the size until I'd looked through a few). I got close using: find -iname \*.pl |sed 's!./!!' |xargs /usr/bin/ls --block-size=1 -1dhsS That gave 577 lines of output, but only displaying the 1st entry of same-size, consecutive entries that only has 15 unique sizes: 312K lib/perl5db.pl 200K lib/Unicode/Collate/Locale/ja.pl 100K lib/Unicode/Collate/Locale/zh_pin.pl 96K ext/XS-APItest/t/utf8_warn_base.pl 36K regen/opcode.pl 32K ext/DynaLoader/DynaLoader_pm.PL 28K regen/feature.pl 24K ext/XS-APItest/t/handy_base.pl 20K Porting/checkURL.pl 16K Porting/corelist.pl 12K t/lib/dbmt_common.pl 8.0K dist/lib/lib_pm.PL 4.0K cpan/Pod-Simple/t/ascii_order.pl 4.0K t/run/dtrace.pl Unfortunately, the "-s" param on 'ls' drops 99.98% of the size info. If the -s parameter displayed allocated space for a file on a device with the block-size as specified on the command line (useful for determining how much space the files will take on some device with a finer block-size). Using the block size as specified by the user gives 279 uniquely-sized entries losing no information (0%) on the sizes of the files, with only my elision of names for the sake of less verbosity 310K lib/perl5db.pl 197K cpan/Unicode-Collate/Collate/Locale/ja.pl 138K regen/mk_invlists.pl 126K Porting/bisect-runner.pl ... 53.3K win32/bin/search.pl 52.1K cpan/IO-Compress/t/compress/generic.pl 49.9K t/test.pl 46.4K utils/perlbug.PL ... 17.4K Porting/pod_lib.pl 17.1K Porting/add-package.pl .... 6.7K dist/Devel-PPPort/Makefile.PL 6.6K cpan/Sys-Syslog/Makefile.PL 6.5K cpan/podlators/Makefile.PL 5.5K cpan/Unicode-Collate/Collate/Locale/da.pl 5.4K symbian/makesis.pl ... 1.2K ext/Hash-Util/Makefile.PL 1.1K win32/bin/perlglob.pl 1.0K ext/File-Glob/Makefile.PL 997 cpan/Unicode-Collate/Makefile.PL 983 cpan/Unicode-Collate/Collate/Locale/mk.pl ... 125 dist/Time-HiRes/hints/sco.pl 110 ext/VMS-DCLsym/Makefile.PL 104 dist/Time-HiRes/hints/dynixptx.pl 101 cpan/DB_File/hints/dynixptx.pl 97 ext/POSIX/hints/mint.pl 94 dist/IO/hints/sco.pl .... 11 symbian/uid.pl 6 t/op/svleak.pl 3 t/run/dtrace.pl 2 cpan/Module-Load-Conditional/t/to_load/LoadMe.pl -------------------------- Perhaps the '-s' option in ls could pay attention to the user-specified block-size?
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: L A Walsh <coreutils@HIDDEN> Subject: bug#49994: Acknowledgement (upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size") Message-ID: <handler.49994.B.162866506032239.ack <at> debbugs.gnu.org> References: <61137488.8060406@HIDDEN> X-Gnu-PR-Message: ack 49994 X-Gnu-PR-Package: coreutils Reply-To: 49994 <at> debbugs.gnu.org Date: Wed, 11 Aug 2021 06:58:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 49994 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 49994: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49994 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: Paul Eggert <eggert@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Wed, 11 Aug 2021 07:42:02 +0000 Resent-Message-ID: <handler.49994.B49994.162866766912701 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: L A Walsh <coreutils@HIDDEN>, 49994 <at> debbugs.gnu.org Received: via spool by 49994-submit <at> debbugs.gnu.org id=B49994.162866766912701 (code B ref 49994); Wed, 11 Aug 2021 07:42:02 +0000 Received: (at 49994) by debbugs.gnu.org; 11 Aug 2021 07:41:09 +0000 Received: from localhost ([127.0.0.1]:33249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mDirM-0003In-NG for submit <at> debbugs.gnu.org; Wed, 11 Aug 2021 03:41:08 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mDirK-0003IO-V0 for 49994 <at> debbugs.gnu.org; Wed, 11 Aug 2021 03:41:07 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F0B1F1600F1; Wed, 11 Aug 2021 00:41:00 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id iLoX12lNyxTp; Wed, 11 Aug 2021 00:40:56 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A41A11600F3; Wed, 11 Aug 2021 00:40:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 74RYJgqTnm_m; Wed, 11 Aug 2021 00:40:56 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7F4D61600F1; Wed, 11 Aug 2021 00:40:56 -0700 (PDT) References: <61137488.8060406@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department Message-ID: <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> Date: Wed, 11 Aug 2021 00:40:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <61137488.8060406@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) On 8/10/21 11:56 PM, L A Walsh wrote: > Perhaps the '-s' option in ls could pay attention to > the user-specified block-size? Doesn't it already do that? $ ls -s libc.so 12192 libc.so $ ls -s --block-size=1 libc.so 12484608 libc.so
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: L A Walsh <coreutils@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Sun, 15 Aug 2021 23:16:01 +0000 Resent-Message-ID: <handler.49994.B.16290693126066 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert <eggert@HIDDEN> Cc: 49994 <at> debbugs.gnu.org X-Debbugs-Original-Cc: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.16290693126066 (code B ref -1); Sun, 15 Aug 2021 23:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Aug 2021 23:15:12 +0000 Received: from localhost ([127.0.0.1]:47929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mFPLQ-0001Zf-UQ for submit <at> debbugs.gnu.org; Sun, 15 Aug 2021 19:15:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:42718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <coreutils@HIDDEN>) id 1mFPLM-0001ZT-TA for submit <at> debbugs.gnu.org; Sun, 15 Aug 2021 19:15:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mFPLM-00063T-NR for bug-coreutils@HIDDEN; Sun, 15 Aug 2021 19:15:04 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:41208 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mFPLK-0005VU-N5 for bug-coreutils@HIDDEN; Sun, 15 Aug 2021 19:15:04 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 17FNE4m1043831; Sun, 15 Aug 2021 16:14:06 -0700 Message-ID: <61199F88.6080109@HIDDEN> Date: Sun, 15 Aug 2021 16:13:12 -0700 From: L A Walsh <coreutils@HIDDEN> User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> In-Reply-To: <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@HIDDEN; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.6 (/) (reposting w/list+bugdb) Hmm... for libc.so, ls -l shows 253 bytes for -s, it shows '4' and w/block-size=1, it shows 4096... My LS_OPTIONS is LS_OPTIONS=-N --color=tty -T 0 -N for quoting and -T for no tabs my version: rpm -qf /usr/bin/ls coreutils-8.23-2.3.2.x86_64 may not be as current as yours, but it would be odd if it changed and you didn't know... Ishtar:/usr/lib64> command ls -lgG libc.so -rw-r--r-- 1 253 Mar 11 11:22 libc.so Ishtar:/usr/lib64> command ls -s libc.so 4 libc.so Ishtar:/usr/lib64> command ls --block-size=1 -s libc.so 4096 libc.so On 2021/08/11 00:40, Paul Eggert wrote: > On 8/10/21 11:56 PM, L A Walsh wrote: >> Perhaps the '-s' option in ls could pay attention to >> the user-specified block-size? > > Doesn't it already do that? > > $ ls -s libc.so > 12192 libc.so > $ ls -s --block-size=1 libc.so > 12484608 libc.so On 2021/08/11 00:40, Paul Eggert wrote: > On 8/10/21 11:56 PM, L A Walsh wrote: >> Perhaps the '-s' option in ls could pay attention to >> the user-specified block-size? > > Doesn't it already do that? > > $ ls -s libc.so > 12192 libc.so > $ ls -s --block-size=1 libc.so > 12484608 libc.so
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: Paul Eggert <eggert@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Mon, 16 Aug 2021 04:02:01 +0000 Resent-Message-ID: <handler.49994.B.16290864718162 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: L A Walsh <coreutils@HIDDEN> Cc: 49994 <at> debbugs.gnu.org X-Debbugs-Original-Cc: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.16290864718162 (code B ref -1); Mon, 16 Aug 2021 04:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2021 04:01:11 +0000 Received: from localhost ([127.0.0.1]:48132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mFToE-00027Z-Vh for submit <at> debbugs.gnu.org; Mon, 16 Aug 2021 00:01:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:56568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mFToD-00027S-9c for submit <at> debbugs.gnu.org; Mon, 16 Aug 2021 00:01:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@HIDDEN>) id 1mFToC-0002go-U4 for bug-coreutils@HIDDEN; Mon, 16 Aug 2021 00:01:08 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:33430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@HIDDEN>) id 1mFTo6-0000OF-Oh for bug-coreutils@HIDDEN; Mon, 16 Aug 2021 00:01:07 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C3D87160051; Sun, 15 Aug 2021 21:00:52 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KHr9xXX4x0zu; Sun, 15 Aug 2021 21:00:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 06B9716005D; Sun, 15 Aug 2021 21:00:52 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yeElEgg1X7-j; Sun, 15 Aug 2021 21:00:51 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D6F29160051; Sun, 15 Aug 2021 21:00:51 -0700 (PDT) References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department Message-ID: <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> Date: Sun, 15 Aug 2021 21:00:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <61199F88.6080109@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@HIDDEN; helo=zimbra.cs.ucla.edu X-Spam_score_int: -62 X-Spam_score: -6.3 X-Spam_bar: ------ X-Spam_report: (-6.3 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-2.147, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) On 8/15/21 4:13 PM, L A Walsh wrote: > Hmm...=C2=A0 for libc.so, ls -l shows 253 bytes > for -s, it shows '4' and w/block-size=3D1, it shows > 4096... Right. That is, those numbers look right.
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: L A Walsh <coreutils@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Mon, 16 Aug 2021 04:28:02 +0000 Resent-Message-ID: <handler.49994.B.162908806410761 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: eggert@HIDDEN, 49994 <at> debbugs.gnu.org X-Debbugs-Original-To: Paul Eggert <eggert@HIDDEN>, Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.162908806410761 (code B ref -1); Mon, 16 Aug 2021 04:28:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2021 04:27:44 +0000 Received: from localhost ([127.0.0.1]:48160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mFUDv-0002nV-TD for submit <at> debbugs.gnu.org; Mon, 16 Aug 2021 00:27:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:33652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <coreutils@HIDDEN>) id 1mFUDt-0002nL-Hl for submit <at> debbugs.gnu.org; Mon, 16 Aug 2021 00:27:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mFUDt-00082f-BA for bug-coreutils@HIDDEN; Mon, 16 Aug 2021 00:27:41 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:41210 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mFUDr-00062s-Jf for bug-coreutils@HIDDEN; Mon, 16 Aug 2021 00:27:41 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 17G4Qfd3069719; Sun, 15 Aug 2021 21:26:44 -0700 Message-ID: <6119E8F2.6060705@HIDDEN> Date: Sun, 15 Aug 2021 21:26:26 -0700 From: L A Walsh <coreutils@HIDDEN> User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> In-Reply-To: <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@HIDDEN; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) On 2021/08/15 21:00, Paul Eggert wrote: > On 8/15/21 4:13 PM, L A Walsh wrote: >> Hmm... for libc.so, ls -l shows 253 bytes >> for -s, it shows '4' and w/block-size=1, it shows >> 4096... > > Right. That is, those numbers look right. ---- But I'm specifying a block size of 1 byte, to determine what size it would take up on a device that allocates in 'bytes'. I don't want to display the allocated size on the current device, but the size that would be allocated on a device with block-size=1-byte.
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: Paul Eggert <eggert@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Mon, 16 Aug 2021 04:37:01 +0000 Resent-Message-ID: <handler.49994.B.162908858011792 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: L A Walsh <coreutils@HIDDEN> Cc: 49994 <at> debbugs.gnu.org X-Debbugs-Original-Cc: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.162908858011792 (code B ref -1); Mon, 16 Aug 2021 04:37:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2021 04:36:20 +0000 Received: from localhost ([127.0.0.1]:48177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mFUMG-000348-AT for submit <at> debbugs.gnu.org; Mon, 16 Aug 2021 00:36:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:34882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mFUMF-000341-6G for submit <at> debbugs.gnu.org; Mon, 16 Aug 2021 00:36:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@HIDDEN>) id 1mFUME-0001Ob-Un for bug-coreutils@HIDDEN; Mon, 16 Aug 2021 00:36:18 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:36342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@HIDDEN>) id 1mFUMC-0004rp-9p for bug-coreutils@HIDDEN; Mon, 16 Aug 2021 00:36:18 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 912F0160051; Sun, 15 Aug 2021 21:36:14 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id bRZ0Yud932yL; Sun, 15 Aug 2021 21:36:14 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EEBDA16005D; Sun, 15 Aug 2021 21:36:13 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id cLxu3tNltu9a; Sun, 15 Aug 2021 21:36:13 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id CA917160051; Sun, 15 Aug 2021 21:36:13 -0700 (PDT) References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> <6119E8F2.6060705@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department Message-ID: <6d41e1ae-9112-2dd5-96b1-f0e979476a0c@HIDDEN> Date: Sun, 15 Aug 2021 21:36:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <6119E8F2.6060705@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@HIDDEN; helo=zimbra.cs.ucla.edu X-Spam_score_int: -62 X-Spam_score: -6.3 X-Spam_bar: ------ X-Spam_report: (-6.3 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-2.147, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) On 8/15/21 9:26 PM, L A Walsh wrote: > I don't want to display the allocated size on the current device, > but the size that would be allocated on a device with block-size=1-byte. There's no practical way for 'ls' to calculate that, as the kernel doesn't reveal that information.
Received: (at control) by debbugs.gnu.org; 16 Aug 2021 04:36:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 16 00:36:50 2021 Received: from localhost ([127.0.0.1]:48180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mFUMk-000355-HM for submit <at> debbugs.gnu.org; Mon, 16 Aug 2021 00:36:50 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mFUMj-00034k-5F for control <at> debbugs.gnu.org; Mon, 16 Aug 2021 00:36:49 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id CE2C7160051 for <control <at> debbugs.gnu.org>; Sun, 15 Aug 2021 21:36:43 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id TsTVWOowmNdE for <control <at> debbugs.gnu.org>; Sun, 15 Aug 2021 21:36:43 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3D65916005D for <control <at> debbugs.gnu.org>; Sun, 15 Aug 2021 21:36:43 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id b_1-Oz7htchw for <control <at> debbugs.gnu.org>; Sun, 15 Aug 2021 21:36:43 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 20DE2160051 for <control <at> debbugs.gnu.org>; Sun, 15 Aug 2021 21:36:43 -0700 (PDT) To: control <at> debbugs.gnu.org From: Paul Eggert <eggert@HIDDEN> Subject: 49994 is wishlist Organization: UCLA Computer Science Department Message-ID: <baafcb53-4807-dfc9-34bb-a23318ae616e@HIDDEN> Date: Sun, 15 Aug 2021 21:36:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) severity 49994 wishlist
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: L A Walsh <coreutils@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Tue, 17 Aug 2021 10:26:02 +0000 Resent-Message-ID: <handler.49994.B.162919596116476 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert <eggert@HIDDEN> Cc: 49994 <at> debbugs.gnu.org X-Debbugs-Original-Cc: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.162919596116476 (code B ref -1); Tue, 17 Aug 2021 10:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Aug 2021 10:26:01 +0000 Received: from localhost ([127.0.0.1]:51801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mFwIC-0004Hg-Mh for submit <at> debbugs.gnu.org; Tue, 17 Aug 2021 06:26:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:47956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <coreutils@HIDDEN>) id 1mFwIA-0004HY-Qt for submit <at> debbugs.gnu.org; Tue, 17 Aug 2021 06:25:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mFwIA-0004oH-I7 for bug-coreutils@HIDDEN; Tue, 17 Aug 2021 06:25:58 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:41220 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mFwI8-000744-I2 for bug-coreutils@HIDDEN; Tue, 17 Aug 2021 06:25:58 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 17HAOo10030897; Tue, 17 Aug 2021 03:24:52 -0700 Message-ID: <611B8E46.4090304@HIDDEN> Date: Tue, 17 Aug 2021 03:24:06 -0700 From: L A Walsh <coreutils@HIDDEN> User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> <6119E8F2.6060705@HIDDEN> <6d41e1ae-9112-2dd5-96b1-f0e979476a0c@HIDDEN> In-Reply-To: <6d41e1ae-9112-2dd5-96b1-f0e979476a0c@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@HIDDEN; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) On 2021/08/15 21:36, Paul Eggert wrote: > On 8/15/21 9:26 PM, L A Walsh wrote: >> I don't want to display the allocated size on the current device, >> but the size that would be allocated on a device with block-size=1-byte. > > There's no practical way for 'ls' to calculate that, as the kernel > doesn't reveal that information. 'du' can display sizes using and arbitrary block size with no need for kernel support, but it doesn't have the format options that ls has. For determining the size with an arbitrary block size, the code could just be dupped from 'du'.
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: Paul Eggert <eggert@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Tue, 17 Aug 2021 23:01:01 +0000 Resent-Message-ID: <handler.49994.B.162924121728886 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: L A Walsh <coreutils@HIDDEN> Cc: 49994 <at> debbugs.gnu.org X-Debbugs-Original-Cc: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.162924121728886 (code B ref -1); Tue, 17 Aug 2021 23:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Aug 2021 23:00:17 +0000 Received: from localhost ([127.0.0.1]:54402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mG848-0007Vq-TT for submit <at> debbugs.gnu.org; Tue, 17 Aug 2021 19:00:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:45986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mG847-0007Vh-IC for submit <at> debbugs.gnu.org; Tue, 17 Aug 2021 19:00:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@HIDDEN>) id 1mG847-0000a1-8X for bug-coreutils@HIDDEN; Tue, 17 Aug 2021 19:00:15 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:58928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@HIDDEN>) id 1mG843-0002QI-Lf for bug-coreutils@HIDDEN; Tue, 17 Aug 2021 19:00:14 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C227E160083; Tue, 17 Aug 2021 16:00:09 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id fdr47yGrNbi8; Tue, 17 Aug 2021 16:00:09 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 22CE8160052; Tue, 17 Aug 2021 16:00:09 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qlr_AgkiEv5Y; Tue, 17 Aug 2021 16:00:09 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 00B531600CC; Tue, 17 Aug 2021 16:00:08 -0700 (PDT) References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> <6119E8F2.6060705@HIDDEN> <6d41e1ae-9112-2dd5-96b1-f0e979476a0c@HIDDEN> <611B8E46.4090304@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department Message-ID: <c7260628-478c-384b-1d0f-5802d199bb91@HIDDEN> Date: Tue, 17 Aug 2021 16:00:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <611B8E46.4090304@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@HIDDEN; helo=zimbra.cs.ucla.edu X-Spam_score_int: -61 X-Spam_score: -6.2 X-Spam_bar: ------ X-Spam_report: (-6.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.961, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) On 8/17/21 3:24 AM, L A Walsh wrote: > > > On 2021/08/15 21:36, Paul Eggert wrote: >> On 8/15/21 9:26 PM, L A Walsh wrote: >>> I don't want to display the allocated size on the current device, >>> but the size that would be allocated on a device with block-size=1-byte. >> >> There's no practical way for 'ls' to calculate that, as the kernel >> doesn't reveal that information. > > 'du' can display sizes using and arbitrary block size with > no need for kernel support That's different from displaying the size that would have been allocated on a device with a block size of 1 byte. 'du' can't do what you requested, any more than 'ls' can.
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: L A Walsh <coreutils@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Tue, 17 Aug 2021 23:06:02 +0000 Resent-Message-ID: <handler.49994.B.162924153429377 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert <eggert@HIDDEN> Cc: 49994 <at> debbugs.gnu.org X-Debbugs-Original-Cc: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.162924153429377 (code B ref -1); Tue, 17 Aug 2021 23:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Aug 2021 23:05:34 +0000 Received: from localhost ([127.0.0.1]:54406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mG89G-0007dl-G9 for submit <at> debbugs.gnu.org; Tue, 17 Aug 2021 19:05:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:49222) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <coreutils@HIDDEN>) id 1mG89E-0007db-Fw for submit <at> debbugs.gnu.org; Tue, 17 Aug 2021 19:05:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mG89E-0003Hc-AR for bug-coreutils@HIDDEN; Tue, 17 Aug 2021 19:05:32 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:41226 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mG89C-0006Ee-6C for bug-coreutils@HIDDEN; Tue, 17 Aug 2021 19:05:31 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 17HN4Whd097071; Tue, 17 Aug 2021 16:04:34 -0700 Message-ID: <611C404C.7090902@HIDDEN> Date: Tue, 17 Aug 2021 16:03:40 -0700 From: L A Walsh <coreutils@HIDDEN> User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> <6119E8F2.6060705@HIDDEN> <6d41e1ae-9112-2dd5-96b1-f0e979476a0c@HIDDEN> <611B8E46.4090304@HIDDEN> <c7260628-478c-384b-1d0f-5802d199bb91@HIDDEN> In-Reply-To: <c7260628-478c-384b-1d0f-5802d199bb91@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@HIDDEN; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) On 2021/08/17 16:00, Paul Eggert wrote: > That's different from displaying the size that would have been allocated > on a device with a block size of 1 byte. 'du' can't do what you > requested, any more than 'ls' can. ---- However you want to phrase it, with: --block-size=SIZE I want to have 'ls' 'scale sizes by SIZE before printing them'
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: Paul Eggert <eggert@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Wed, 18 Aug 2021 15:40:02 +0000 Resent-Message-ID: <handler.49994.B.16293011741392 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: L A Walsh <coreutils@HIDDEN> Cc: 49994 <at> debbugs.gnu.org X-Debbugs-Original-Cc: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.16293011741392 (code B ref -1); Wed, 18 Aug 2021 15:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2021 15:39:34 +0000 Received: from localhost ([127.0.0.1]:57344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mGNfC-0000MN-Jh for submit <at> debbugs.gnu.org; Wed, 18 Aug 2021 11:39:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:39918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mGNf9-0000MF-MA for submit <at> debbugs.gnu.org; Wed, 18 Aug 2021 11:39:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@HIDDEN>) id 1mGNf9-0007SQ-EB for bug-coreutils@HIDDEN; Wed, 18 Aug 2021 11:39:31 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45230) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eggert@HIDDEN>) id 1mGNf7-0007wS-Bt for bug-coreutils@HIDDEN; Wed, 18 Aug 2021 11:39:30 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8FB421600EB; Wed, 18 Aug 2021 08:39:27 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 4ibTrEtKvA_w; Wed, 18 Aug 2021 08:39:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E00911600ED; Wed, 18 Aug 2021 08:39:26 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YcWNEDfZj5e3; Wed, 18 Aug 2021 08:39:26 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id BE7181600EB; Wed, 18 Aug 2021 08:39:26 -0700 (PDT) References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> <6119E8F2.6060705@HIDDEN> <6d41e1ae-9112-2dd5-96b1-f0e979476a0c@HIDDEN> <611B8E46.4090304@HIDDEN> <c7260628-478c-384b-1d0f-5802d199bb91@HIDDEN> <611C404C.7090902@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department Message-ID: <69f4e1d8-7642-3172-9c86-b6fcac75fa90@HIDDEN> Date: Wed, 18 Aug 2021 08:39:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <611C404C.7090902@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@HIDDEN; helo=zimbra.cs.ucla.edu X-Spam_score_int: -61 X-Spam_score: -6.2 X-Spam_bar: ------ X-Spam_report: (-6.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.961, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.4 (--) On 8/17/21 4:03 PM, L A Walsh wrote: > However you want to phrase it, with: >=20 > =C2=A0=C2=A0 --block-size=3DSIZE >=20 > I want to have 'ls' >=20 > =C2=A0=C2=A0 'scale sizes by SIZE before printing them' But that's what --block-size does. Perhaps your request would be more clear if you gave a specific example=20 of what you want and why --block-size doesn't do what you want.
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: L A Walsh <coreutils@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Fri, 20 Aug 2021 07:05:02 +0000 Resent-Message-ID: <handler.49994.B.162944309514720 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Paul Eggert <eggert@HIDDEN> Cc: 49994 <at> debbugs.gnu.org X-Debbugs-Original-Cc: Coreutils <bug-coreutils@HIDDEN> Received: via spool by submit <at> debbugs.gnu.org id=B.162944309514720 (code B ref -1); Fri, 20 Aug 2021 07:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Aug 2021 07:04:55 +0000 Received: from localhost ([127.0.0.1]:32877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mGya8-0003pE-57 for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 03:04:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:55380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <coreutils@HIDDEN>) id 1mGyZz-0003oz-9f for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 03:04:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mGyZz-0006CB-23 for bug-coreutils@HIDDEN; Fri, 20 Aug 2021 03:04:39 -0400 Received: from ishtar.tlinx.org ([173.164.175.65]:41240 helo=Ishtar.sc.tlinx.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <coreutils@HIDDEN>) id 1mGyZs-0006tL-W0 for bug-coreutils@HIDDEN; Fri, 20 Aug 2021 03:04:38 -0400 Received: from [192.168.3.12] (Athenae [192.168.3.12]) by Ishtar.sc.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id 17K73RBv053436; Fri, 20 Aug 2021 00:03:29 -0700 Message-ID: <611F5396.1080807@HIDDEN> Date: Fri, 20 Aug 2021 00:02:46 -0700 From: L A Walsh <coreutils@HIDDEN> User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> <6119E8F2.6060705@HIDDEN> <6d41e1ae-9112-2dd5-96b1-f0e979476a0c@HIDDEN> <611B8E46.4090304@HIDDEN> <c7260628-478c-384b-1d0f-5802d199bb91@HIDDEN> <611C404C.7090902@HIDDEN> <69f4e1d8-7642-3172-9c86-b6fcac75fa90@HIDDEN> In-Reply-To: <69f4e1d8-7642-3172-9c86-b6fcac75fa90@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=173.164.175.65; envelope-from=coreutils@HIDDEN; helo=Ishtar.sc.tlinx.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) On 2021/08/18 08:39, Paul Eggert wrote: > Perhaps your request would be more clear if you gave a specific example > of what you want and why --block-size doesn't do what you want. ---- I wanted to use ls to list the size of files in bytes, and use Binary prefixes K=1024, M=1024**2, G=1024**3 to display the the numeric portion with a maximum 3 digits or use a floating point format with up to 1 digit to the right of the decimal point: similar and as rounded by use of "%.1f" as in printf. Using a list of 577 files in file "files.txt", the existing 'ls' using: cat files.txt|xargs /usr/bin/ls --block-size=1 -1dhsS Instead of displaying the file sizes in bytes, it showed them rounded to the nearest 4K, so sorting by size and displaying only the 1st of a given size, I only ended up with 13 unique file-sizes in the list: 312K lib/perl5db.pl 200K lib/Unicode/Collate/Locale/ja.pl 100K lib/Unicode/Collate/Locale/zh_pin.pl 96K ext/XS-APItest/t/utf8_warn_base.pl 36K regen/opcode.pl 32K ext/DynaLoader/DynaLoader_pm.PL 28K regen/feature.pl 24K ext/XS-APItest/t/handy_base.pl 20K Porting/checkURL.pl 16K Porting/corelist.pl 12K t/lib/dbmt_common.pl 8.0K dist/lib/lib_pm.PL 4.0K cpan/Pod-Simple/t/ascii_order.pl I expected closer to 100 or more files displayed with size under 1000 bytes. If 'ls' used the user-specified 'block-size' of 1 byte, the number of files displayed is actually 279, or over 20 times the number of files with some names elided for sake of brevity. 310K lib/perl5db.pl 197K cpan/Unicode-Collate/Collate/Locale/ja.pl 138K regen/mk_invlists.pl 126K Porting/bisect-runner.pl ... 53.3K win32/bin/search.pl 52.1K cpan/IO-Compress/t/compress/generic.pl 49.9K t/test.pl 46.4K utils/perlbug.PL ... 17.4K Porting/pod_lib.pl 17.1K Porting/add-package.pl .... 6.7K dist/Devel-PPPort/Makefile.PL 6.6K cpan/Sys-Syslog/Makefile.PL 6.5K cpan/podlators/Makefile.PL 5.5K cpan/Unicode-Collate/Collate/Locale/da.pl 5.4K symbian/makesis.pl ... 1.2K ext/Hash-Util/Makefile.PL 1.1K win32/bin/perlglob.pl 1.0K ext/File-Glob/Makefile.PL 997 cpan/Unicode-Collate/Makefile.PL 983 cpan/Unicode-Collate/Collate/Locale/mk.pl ... 125 dist/Time-HiRes/hints/sco.pl 110 ext/VMS-DCLsym/Makefile.PL 104 dist/Time-HiRes/hints/dynixptx.pl 101 cpan/DB_File/hints/dynixptx.pl 97 ext/POSIX/hints/mint.pl 94 dist/IO/hints/sco.pl .... 11 symbian/uid.pl 6 t/op/svleak.pl 3 t/run/dtrace.pl 2 cpan/Module-Load-Conditional/t/to_load/LoadMe.pl ----------------------------- Instead 'ls' displays 4.0K for a file that is only 2 bytes. Clearly it isn't using the block-size specified by the user in the same way 'du' does: cd /tmp echo "1" >out.pl du -b out.pl 2 out.pl Ishtar:/tmp> /bin/ls --block-size=1 -1dhsS /tmp/out.pl 4.0K /tmp/out.pl --- When I use "-b" in du (equivalent to '--apparent-size --block-size=1), I get a size of '2' which one would expect for a file with 2 chars in it. however, ls displays 4.0K. Clearly it isn't using the --block-size=1 that 'du' is using.
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: Andreas Schwab <schwab@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Fri, 20 Aug 2021 08:31:02 +0000 Resent-Message-ID: <handler.49994.B49994.162944824631676 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: L A Walsh <coreutils@HIDDEN> Cc: 49994 <at> debbugs.gnu.org, Paul Eggert <eggert@HIDDEN> Received: via spool by 49994-submit <at> debbugs.gnu.org id=B49994.162944824631676 (code B ref 49994); Fri, 20 Aug 2021 08:31:02 +0000 Received: (at 49994) by debbugs.gnu.org; 20 Aug 2021 08:30:46 +0000 Received: from localhost ([127.0.0.1]:32938 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mGzvK-0008Eq-6u for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 04:30:46 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:37716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <whitebox@HIDDEN>) id 1mGzvH-0008Ee-4k for 49994 <at> debbugs.gnu.org; Fri, 20 Aug 2021 04:30:44 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4GrZb52W39z1rk4p; Fri, 20 Aug 2021 10:30:40 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4GrZb41lnMz1qqkj; Fri, 20 Aug 2021 10:30:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id zd-XEJHwUr_4; Fri, 20 Aug 2021 10:30:39 +0200 (CEST) X-Auth-Info: Z30K9f08p96sso9BVjsW7FOFOTJ2nLBoVUsbDpLCH3VB8Z72Ww4GOw+sPrLCpOaL Received: from igel.home (ppp-46-244-165-33.dynamic.mnet-online.de [46.244.165.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 20 Aug 2021 10:30:39 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 0CC742C274C; Fri, 20 Aug 2021 10:30:39 +0200 (CEST) From: Andreas Schwab <schwab@HIDDEN> References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> <6119E8F2.6060705@HIDDEN> <6d41e1ae-9112-2dd5-96b1-f0e979476a0c@HIDDEN> <611B8E46.4090304@HIDDEN> <c7260628-478c-384b-1d0f-5802d199bb91@HIDDEN> <611C404C.7090902@HIDDEN> <69f4e1d8-7642-3172-9c86-b6fcac75fa90@HIDDEN> <611F5396.1080807@HIDDEN> X-Yow: Wow! Look!! A stray meatball!! Let's interview it! Date: Fri, 20 Aug 2021 10:30:39 +0200 In-Reply-To: <611F5396.1080807@HIDDEN> (L. A. Walsh's message of "Fri, 20 Aug 2021 00:02:46 -0700") Message-ID: <87czq8jz68.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.5 (-) There is stat and numfmt. Andreas. -- Andreas Schwab, schwab@HIDDEN GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
X-Loop: help-debbugs@HIDDEN Subject: bug#49994: upgrade: have "-s" of 'ls' display alloc'd sizes for specified "--block-size" Resent-From: Paul Eggert <eggert@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-coreutils@HIDDEN Resent-Date: Fri, 20 Aug 2021 15:09:02 +0000 Resent-Message-ID: <handler.49994.B49994.16294721031788 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49994 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: L A Walsh <coreutils@HIDDEN> Cc: 49994 <at> debbugs.gnu.org Received: via spool by 49994-submit <at> debbugs.gnu.org id=B49994.16294721031788 (code B ref 49994); Fri, 20 Aug 2021 15:09:02 +0000 Received: (at 49994) by debbugs.gnu.org; 20 Aug 2021 15:08:23 +0000 Received: from localhost ([127.0.0.1]:35328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1mH687-0000Sm-5m for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 11:08:23 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eggert@HIDDEN>) id 1mH684-0000SY-QY for 49994 <at> debbugs.gnu.org; Fri, 20 Aug 2021 11:08:21 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B31711600FB; Fri, 20 Aug 2021 08:08:14 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 8MsaK7c1i55A; Fri, 20 Aug 2021 08:08:14 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0E205160101; Fri, 20 Aug 2021 08:08:14 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id upG1Gs6lmKtT; Fri, 20 Aug 2021 08:08:13 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id DE5E91600FB; Fri, 20 Aug 2021 08:08:13 -0700 (PDT) References: <61137488.8060406@HIDDEN> <37b76722-35c9-74b6-1414-5d686ccd02c3@HIDDEN> <61199F88.6080109@HIDDEN> <348109b1-8a2e-d12c-3fa6-452a69974fba@HIDDEN> <6119E8F2.6060705@HIDDEN> <6d41e1ae-9112-2dd5-96b1-f0e979476a0c@HIDDEN> <611B8E46.4090304@HIDDEN> <c7260628-478c-384b-1d0f-5802d199bb91@HIDDEN> <611C404C.7090902@HIDDEN> <69f4e1d8-7642-3172-9c86-b6fcac75fa90@HIDDEN> <611F5396.1080807@HIDDEN> From: Paul Eggert <eggert@HIDDEN> Organization: UCLA Computer Science Department Message-ID: <c18bf6c2-b2d1-72ea-da3f-58e5464259c3@HIDDEN> Date: Fri, 20 Aug 2021 08:08:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <611F5396.1080807@HIDDEN> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.4 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.4 (---) On 8/20/21 12:02 AM, L A Walsh wrote: > When I use "-b" in du (equivalent to '--apparent-size --block-size=3D1) Previously in this thread you asked for "allocated space for a file on a=20 device", which is why I was talking about that number. Now you're asking for apparent size, which is a different number. If you=20 want apparent size, you can use 'ls -l', or follow Andreas's suggestion=20 and use something like 'stat -c "%s %n"'. However, apparent size might=20 be quite different from allocated space, as can be seen in the 1st and=20 6th columns of the last two lines of the following: $ echo '' >a $ truncate -s 1TB b; echo '' >>b $ ls -ls --block-size=3D1 a b 4096 -rw-rw-r-- 1 eggert eggert 1 Aug 20 08:07 a 4096 -rw-rw-r-- 1 eggert eggert 1000000000001 Aug 20 08:07 b
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.