From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 08 12:57:40 2010 Received: (at submit) by debbugs.gnu.org; 8 Oct 2010 16:57:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P4GGJ-00046J-KW for submit@debbugs.gnu.org; Fri, 08 Oct 2010 12:57:40 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P4G8P-00042j-8A for submit@debbugs.gnu.org; Fri, 08 Oct 2010 12:49:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4GBZ-0005LC-8T for submit@debbugs.gnu.org; Fri, 08 Oct 2010 12:52:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:45241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4GBY-0005KK-7h for submit@debbugs.gnu.org; Fri, 08 Oct 2010 12:52:45 -0400 Received: from [140.186.70.92] (port=55855 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4GBP-0007h8-U1 for bug-coreutils@gnu.org; Fri, 08 Oct 2010 12:52:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4GBL-0005GZ-0K for bug-coreutils@gnu.org; Fri, 08 Oct 2010 12:52:31 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:54096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4GBK-0005Fx-PS for bug-coreutils@gnu.org; Fri, 08 Oct 2010 12:52:30 -0400 Received: by bwz19 with SMTP id 19so463000bwz.0 for ; Fri, 08 Oct 2010 09:52:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.112.148 with SMTP id w20mr2040525bkp.131.1286556746711; Fri, 08 Oct 2010 09:52:26 -0700 (PDT) Received: by 10.204.42.23 with HTTP; Fri, 8 Oct 2010 09:52:26 -0700 (PDT) Date: Fri, 8 Oct 2010 18:52:26 +0200 Message-ID: Subject: Feature request: add option to display full units in -h and --si output From: =?UTF-8?Q?Mihai_Capot=C4=83?= To: bug-coreutils Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 08 Oct 2010 12:57:39 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) The output of -h or --si looks identical (if K/k doesn't show up). It would be useful to be able to differentiate between the two by having the full units in the output, e.g., MiB and MB, respectively, instead of just M. Actually, the manual [1] does say "si is similar [to h], but uses powers of 1000 and appends =E2=80=98B=E2=80=99", but that seems to be a bug= , as a similar wording in the ls manual was corrected [2]. Maybe there's a way to generate this full-unit output with the existing options, but I don't see it. Specifying a unit in --block-size (e.g., "MiB or MB") results in everything being displayed only in that unit, not in the usage of the whole spectrum of units, as with -h and --si. I see two possible solutions: (1) add a new flag, say --full-units (2) add two more options for --block-size, say "decimal" and "binary" Regards, Mihai Capot=C4=83 [1] http://www.gnu.org/software/coreutils/manual/html_node/Block-size.html [2] http://lists.gnu.org/archive/html/bug-coreutils/2007-02/msg00312.html From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 08 18:43:28 2010 Received: (at 7176) by debbugs.gnu.org; 8 Oct 2010 22:43:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P4Ley-0007Bl-Bz for submit@debbugs.gnu.org; Fri, 08 Oct 2010 18:43:28 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1P4Lev-0007Bg-Il for 7176@debbugs.gnu.org; Fri, 08 Oct 2010 18:43:26 -0400 Received: (qmail 80421 invoked from network); 8 Oct 2010 22:46:42 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 8 Oct 2010 22:46:42 -0000 Message-ID: <4CAF9EF7.4010209@draigBrady.com> Date: Fri, 08 Oct 2010 23:45:11 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: =?UTF-8?B?TWloYWkgQ2Fwb3TEgw==?= Subject: Re: bug#7176: Feature request: add option to display full units in -h and --si output References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 7176 Cc: 7176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 08/10/10 17:52, Mihai Capotă wrote: > The output of -h or --si looks identical (if K/k doesn't show up). It > would be useful to be able to differentiate between the two by having > the full units in the output, e.g., MiB and MB, respectively, instead > of just M. > > Actually, the manual [1] does say "si is similar [to h], but uses > powers of 1000 and appends ‘B’", but that seems to be a bug, as a > similar wording in the ls manual was corrected [2]. > > Maybe there's a way to generate this full-unit output with the > existing options, but I don't see it. Specifying a unit in > --block-size (e.g., "MiB or MB") results in everything being displayed > only in that unit, not in the usage of the whole spectrum of units, as > with -h and --si. Also there is some inconsistency in how specified units are handled pb-laptop:~$ BLOCKSIZE=1K df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda5 5034364 4815560 167700 97% / pb-laptop:~$ BLOCKSIZE=K df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda5 5034364K 4815560K 167700K 97% / pb-laptop:~$ BLOCKSIZE=Ki df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda5 5034364 4815560 167700 97% / pb-laptop:~$ BLOCKSIZE=KiB df . Filesystem 1KiB-blocks Used Available Use% Mounted on /dev/sda5 5034364KiB 4815560KiB 167700KiB 97% / pb-laptop:~$ BLOCKSIZE=k df . Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda5 5034364K 4815560K 167700K 97% / We must look into that. > > I see two possible solutions: > > (1) add a new flag, say --full-units > (2) add two more options for --block-size, say "decimal" and "binary" (3) get "1024" mode to always output the extra 'i' But that would mean `ls -lh` would output the 'i' by default, which I'm not sure is acceptable. I think (2) is a good option. Though in saying that, supporting this isn't that important I think, as the relative sizes are what's important given that the values are truncated in any case. So I'm 50:50 about making that change. cheers, Pádraig. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 01 08:41:34 2013 Received: (at 7176) by debbugs.gnu.org; 1 Apr 2013 12:41:34 +0000 Received: from localhost ([127.0.0.1]:55656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UMe3J-0002iC-Qq for submit@debbugs.gnu.org; Mon, 01 Apr 2013 08:41:34 -0400 Received: from mail-we0-f180.google.com ([74.125.82.180]:36366) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UMe3F-0002hz-WC for 7176@debbugs.gnu.org; Mon, 01 Apr 2013 08:41:30 -0400 Received: by mail-we0-f180.google.com with SMTP id r5so1677723wey.25 for <7176@debbugs.gnu.org>; Mon, 01 Apr 2013 05:38:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=bTzpt0/vJa0pEqZREyLKZqQN+OkhrsVbB858bwZlLkQ=; b=QGmKyiq1jqUzyfXoNA9SeVZkYQV2lstkveDVlD3dslhdnR1z7QAYaZCJA72ketHjHM wDg4ZdCUss32hzJvpVCZs4AEETvTvZBPpQZ7WWJ8yCXodtrp2vSO+IeSFem/KjbY4sD8 zK99FSv+uUtJS0qjPzH89WfyiLgA7BfwtmjpaJBDBH/xAhXN6rFG4Te6wDv29aBGNlS0 e/WnPbP29Kn9n/ok2NpvF0NumbbAoY/O2cWQwsDHqndsUiWD3fzpPjIXOHbZtfv5BHuH +pFKhjRRralozIkSiS3Lups0DvwaU+fuV0wPA9t80avaFu64Fi0L5Focar2E+maGXiZk ma0w== X-Received: by 10.194.119.200 with SMTP id kw8mr15377413wjb.31.1364819916502; Mon, 01 Apr 2013 05:38:36 -0700 (PDT) Received: from dutier.st.ewi.tudelft.nl (dutier.st.ewi.tudelft.nl. [130.161.159.51]) by mx.google.com with ESMTPS id k5sm14727115wiy.5.2013.04.01.05.38.34 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Apr 2013 05:38:35 -0700 (PDT) From: =?UTF-8?q?Mihai=20Capot=C4=83?= To: P@draigbrady.com Subject: [PATCH] human: add unambiguous block_size_args Date: Mon, 1 Apr 2013 14:38:25 +0200 Message-Id: <1364819905-28909-1-git-send-email-mihai@mihaic.ro> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <4CAF9EF7.4010209@draigBrady.com> References: <4CAF9EF7.4010209@draigBrady.com> X-Gm-Message-State: ALoCoQk7mcykYYhVrpELX/vPrj0LE3pNVZXHuyt+LSF7m4a4zlLUmAAruRijOJhOfAKocicmNzki X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 7176 Cc: 7176@debbugs.gnu.org, bug-gnulib@gnu.org, bug-coreutils@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) The units used in the outputs of "human-readable" and "si" look identical when "K/k" is not present. Add two block_size_args, "binary" and "decimal", that disambiguate between the outputs of "human-readable" and "si" by adding human_B to the list of options. See bug 7176 in GNU coreutils, . --- lib/human.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/human.c b/lib/human.c index 613dc65..66a1835 100644 --- a/lib/human.c +++ b/lib/human.c @@ -394,11 +394,21 @@ human_readable (uintmax_t n, char *buf, int opts, # define DEFAULT_BLOCK_SIZE 1024 #endif -static char const *const block_size_args[] = { "human-readable", "si", 0 }; +static char const *const block_size_args[] = + { + "human-readable", + "si", + "binary", + "decimal", + 0 + }; + static int const block_size_opts[] = { human_autoscale + human_SI + human_base_1024, - human_autoscale + human_SI + human_autoscale + human_SI, + human_autoscale + human_SI + human_base_1024 + human_B, + human_autoscale + human_SI + human_B }; static uintmax_t -- 1.7.9.5 From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 13 19:56:14 2013 Received: (at 7176) by debbugs.gnu.org; 13 Apr 2013 23:56:15 +0000 Received: from localhost ([127.0.0.1]:49339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URAIn-0000uc-DH for submit@debbugs.gnu.org; Sat, 13 Apr 2013 19:56:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43437) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1URAIk-0000uM-SP; Sat, 13 Apr 2013 19:56:12 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3DNq6qF004766 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 13 Apr 2013 19:52:06 -0400 Received: from [10.36.116.18] (ovpn-116-18.ams2.redhat.com [10.36.116.18]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r3DNq3jl020773 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 13 Apr 2013 19:52:05 -0400 Message-ID: <5169EFA3.60701@draigBrady.com> Date: Sun, 14 Apr 2013 00:52:03 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: =?UTF-8?B?TWloYWkgQ2Fwb3TEgw==?= Subject: Re: [PATCH] human: add unambiguous block_size_args References: <4CAF9EF7.4010209@draigBrady.com> <1364819905-28909-1-git-send-email-mihai@mihaic.ro> In-Reply-To: <1364819905-28909-1-git-send-email-mihai@mihaic.ro> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id r3DNq6qF004766 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 7176 Cc: 7176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) forcemerge 14113 7176 stop On 04/01/2013 01:38 PM, Mihai Capot=C4=83 wrote: > The units used in the outputs of "human-readable" and "si" look > identical when "K/k" is not present. Add two block_size_args, "binary" > and "decimal", that disambiguate between the outputs of "human-readable= " > and "si" by adding human_B to the list of options. >=20 > See bug 7176 in GNU coreutils, > . > --- > lib/human.c | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) >=20 > diff --git a/lib/human.c b/lib/human.c > index 613dc65..66a1835 100644 > --- a/lib/human.c > +++ b/lib/human.c > @@ -394,11 +394,21 @@ human_readable (uintmax_t n, char *buf, int opts, > # define DEFAULT_BLOCK_SIZE 1024 > #endif > =20 > -static char const *const block_size_args[] =3D { "human-readable", "si= ", 0 }; > +static char const *const block_size_args[] =3D > + { > + "human-readable", > + "si", > + "binary", > + "decimal", > + 0 > + }; > + > static int const block_size_opts[] =3D > { > human_autoscale + human_SI + human_base_1024, > - human_autoscale + human_SI > + human_autoscale + human_SI, > + human_autoscale + human_SI + human_base_1024 + human_B, > + human_autoscale + human_SI + human_B > }; So I was 50:50 on making this change, and in the meantime numfmt(1) was r= eleased, which gives full control over number formatting, albeit in a more verbose= /explicit form. thanks, P=C3=A1draig From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 16 13:17:16 2013 Received: (at 7176) by debbugs.gnu.org; 16 Apr 2013 17:17:16 +0000 Received: from localhost ([127.0.0.1]:54974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1US9VL-0004TP-TD for submit@debbugs.gnu.org; Tue, 16 Apr 2013 13:17:16 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:60661) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1US9VJ-0004TH-Ea for 7176@debbugs.gnu.org; Tue, 16 Apr 2013 13:17:14 -0400 Received: by mail-ie0-f173.google.com with SMTP id k5so752771iea.18 for <7176@debbugs.gnu.org>; Tue, 16 Apr 2013 10:12:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding :x-gm-message-state; bh=DwygirLpqGcaPCmp5papQ2DGHhcq0dvvdaiPy2GtwMw=; b=ermA67F9jBX/PRJhYuqayEj3aq2D1PZl7ioy9AyyxqsHMRqTMyT0eJ7yo1+FfpyBJO tSUsRrO4pvTbPEegJ+p1VGp8bcSqKCSMLTf3OIwEmFkiZrEJIaecTU62XQF9CyA0c26+ ekVPY2PV15awOCYT4sX9duCj36OIfvb9odxWrXo9WOgRgJ82uD//EBhwqPyTBA4nnkR0 rlC4wePVjMaCK8TV4fkA0YItjTlyUaiUw+MtwKqZVBHGjYuLvYweJZzMiPEMS2NIX96d 62tNjUxLbYtQ20MTlpJWhoBij+HFzk9D0yN/4WiQtv3JAb+Ji+Aug7qy/GcEhAKOkxud AFpw== MIME-Version: 1.0 X-Received: by 10.50.110.104 with SMTP id hz8mr1979309igb.41.1366132374340; Tue, 16 Apr 2013 10:12:54 -0700 (PDT) Received: by 10.64.7.75 with HTTP; Tue, 16 Apr 2013 10:12:54 -0700 (PDT) In-Reply-To: <5169EFA3.60701@draigBrady.com> References: <4CAF9EF7.4010209@draigBrady.com> <1364819905-28909-1-git-send-email-mihai@mihaic.ro> <5169EFA3.60701@draigBrady.com> Date: Tue, 16 Apr 2013 19:12:54 +0200 Message-ID: Subject: Re: [PATCH] human: add unambiguous block_size_args From: =?UTF-8?Q?Mihai_Capot=C4=83?= To: =?UTF-8?Q?P=C3=A1draig_Brady?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlXuWQWPusTonjxUk7GdYPj14G13tzxYFktnRh9cGoWH5jqe+LhZUD2EtOXJSnPMgbC+Ocx X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 7176 Cc: 7176@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Sun, Apr 14, 2013 at 1:52 AM, P=C3=A1draig Brady wrot= e: > So I was 50:50 on making this change, and in the meantime numfmt(1) was r= eleased, > which gives full control over number formatting, albeit in a more verbose= /explicit form. Let me see if I can convince you with a use case. If you set "BLOCK_SIZE=3Dbinary" in your shell configuration file, you get the output you want from all programs that use gnulib. That's not only about verbosity, it's something that cannot be easily done with numfmt. Mihai From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 09 16:41:43 2018 Received: (at 7176) by debbugs.gnu.org; 9 Oct 2018 20:41:43 +0000 Received: from localhost ([127.0.0.1]:42606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9yp5-0004hC-0v for submit@debbugs.gnu.org; Tue, 09 Oct 2018 16:41:43 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:55105) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9yp3-0004gu-AC; Tue, 09 Oct 2018 16:41:41 -0400 Received: by mail-it1-f193.google.com with SMTP id l191-v6so4811838ita.4; Tue, 09 Oct 2018 13:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jbss+noxj4+xazTThjnUIJHlycC9avMMogmCOys5bl0=; b=bQzlGVB2naTSaqcLx8DIXrOsG2PdPeNy+9aJ7kARRqFK9pvXE0GaJzbAtI2CGzjXub nIidxpW+UITjoqsUZb1SI25zzYJeMvperRyclS9P96zr+wlPXPRDDQdUuinUtEJO/Qxg UpvHSwOBzUZxCziRkpb3cFbGed+wVuhksPyF4l6MNTL0KlNQXIYR4hlZ8BJXlTR5gdeo lsnKo2AZlDD6rOPYPb5e9+aBaxUq8djBtDWv5H6WFGn4TB/qQrg2Bc8hywKq3cBUR/Yi GCQY96gsjB6Zm338kDiyXvSs2eSv9rKDfxusWgQxo3bTMFMFXUhoLv7IVJBYlBQjisOv ZkSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jbss+noxj4+xazTThjnUIJHlycC9avMMogmCOys5bl0=; b=Ifb+2K/ASKu3v932+IVeoqL9QBZZ7qzOzA/nwut8pg4M7fTVjChEhbzdYjh2cXOT6Z Uhhq77pUJyzsDziDlQSrOwZA/QehMAWT0vFsrLQfC40Zr2VcTSG4JkgsV3D9tfStc2qB wWNIq/haqpiTRTXTGAY3XB9s5NjwDIes/m6gvNSLJSeQA1s6KgkhRr2YEA/nHTIEOWD2 UvhUUKURAv0Qw21edjXJBiQuK0GK9AcNhNIp+1xiYeuzjsye0IEPs67jyVLsy31IXWMN SFHRvsBy7B5RrjdXS6SopufMYQlKTAwXPNlaqf3moCO6wF/BuCMK6UuQKm00O3n76e9G S/KQ== X-Gm-Message-State: ABuFfoirRH0K35NQxl3toal2XkTAf1cDqtkSH0J/V2ceU122nhhONHUf dO/yjDk4gKBARgxqXK+armg46w0aPAo= X-Google-Smtp-Source: ACcGV62JehXxjQYzS4tr3vSsNLRp0FJQqdRskLDdv2NkbCQhta++e4pzOLskaPbmwTVlpwP93/jOng== X-Received: by 2002:a24:c1c5:: with SMTP id e188-v6mr2922599itg.174.1539117695278; Tue, 09 Oct 2018 13:41:35 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id f15-v6sm6574591ita.24.2018.10.09.13.41.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 13:41:34 -0700 (PDT) Subject: Re: bug#7176: [PATCH] human: add unambiguous block_size_args To: =?UTF-8?Q?Mihai_Capot=c4=83?= , =?UTF-8?Q?P=c3=a1draig_Brady?= References: <4CAF9EF7.4010209@draigBrady.com> <1364819905-28909-1-git-send-email-mihai@mihaic.ro> <5169EFA3.60701@draigBrady.com> From: Assaf Gordon Message-ID: <4bf2191d-a97a-fe6f-21c3-cc16865e769f@gmail.com> Date: Tue, 9 Oct 2018 14:41:32 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 7176 Cc: 7176@debbugs.gnu.org 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.0 (-) tags 7176 wontfix close 7176 stop (Triaging old bugs) Hello, On 16/04/13 11:12 AM, Mihai Capotă wrote: > On Sun, Apr 14, 2013 at 1:52 AM, Pádraig Brady wrote: >> So I was 50:50 on making this change, and in the meantime numfmt(1) was released, >> which gives full control over number formatting, albeit in a more verbose/explicit form. > > Let me see if I can convince you with a use case. If you set > "BLOCK_SIZE=binary" in your shell configuration file, you get the > output you want from all programs that use gnulib. That's not only > about verbosity, it's something that cannot be easily done with > numfmt. Given that: 1. numfmt does some of the requested functionality 2. environment variables are frowned upon and not likely to be expanded 3. there has been no further comments in 5 and a half years I'm opting to close this bug, and we can always re-open the bug if needed. Discussion can continue by replying to this thread, regards, - assaf From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 09 18:23:31 2018 Received: (at 7176) by debbugs.gnu.org; 9 Oct 2018 22:23:31 +0000 Received: from localhost ([127.0.0.1]:42681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gA0Pb-0002Pp-1V for submit@debbugs.gnu.org; Tue, 09 Oct 2018 18:23:31 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:52701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gA0Pa-0002Pe-6c for 7176@debbugs.gnu.org; Tue, 09 Oct 2018 18:23:30 -0400 Received: by mail-it1-f194.google.com with SMTP id 134-v6so5207199itz.2 for <7176@debbugs.gnu.org>; Tue, 09 Oct 2018 15:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mihaic-ro.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wemNCmbHcfA5uyJgH7vAyutYk4xw0uvlzo5Vp75kBjU=; b=nLg4up+n3MKtI0XIqV1mGWp673f5zNCfX07aptSHvm2aqN8R0D/OevkLzeYx4jGD1/ JCYwzwHKMkBFlnSbzZNustzD31emT+GT4ik1wRmLB1ijKrkKrT/QG/FhHQhYuRt/uGq5 X4E643F6+PuM+Uos38vmb/YBJGmVz6pwsdaXIbw3nPjqmEg/azWfmDVCGDAvfM1On2PB w7BS2W1UgRjAH0sN3aSKnPGBfVWVzhkA4VPB9dBbJA1DOhvno2c2TYhMjKrqdqat8taE h2SZrG/Sq4bNqDNo+8bcRiCc1N0rQbMOyY34ORUGyXmEcEHvefZ1pBD8Hp7Q85NL138v jU2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wemNCmbHcfA5uyJgH7vAyutYk4xw0uvlzo5Vp75kBjU=; b=gmNavWSet0ZlYgQBpMB7ATGqcjt8C/lvEvxq6csY09gOydtNVr7ebk2utnLuHKnfL/ 7qJ70MXspVSc2ijtSKSsGBvt938p7ai1VbWCmJCydrWHAhUDbzEZjvZC9U3pRlWBHdXA h50zQ0ThgbH2NkykiHKNGlYsCZPJo7fM+Ji8sEiJubjbRvxUoGXnFQ3P/ei024TdxEYg Hts0cwcPSAzD8xN/azjBkwG7zriJ4kTK39BXBxd5Cv3PLjUWe1gGlxH6zl10WIulYIdu vtGP2R8YTkY5CJDJTnVGOYUL//JXy+dbQbW8aKEQ/VE9LvwK6PjWHOJ5WSOKvej/HeJV JoOw== X-Gm-Message-State: ABuFfohvmuFTbDlcrfK0kxkN1laQYjzwh+zVmkdorqKhZj8L8JVJQeCO WR37em7lSgkK2M1pRMfuZ9+jVH87EWfqzQZLqtYn5Q== X-Google-Smtp-Source: ACcGV614ghFC4ViaEKgEivP/sJlMiWmW7baYRACKm+mgR0D0ot7HjB9EH5JM+OVnWr3G1Gr9KjBOCwxuIh7sjA2l3Tc= X-Received: by 2002:a24:670a:: with SMTP id u10-v6mr3330430itc.114.1539123804302; Tue, 09 Oct 2018 15:23:24 -0700 (PDT) MIME-Version: 1.0 References: <4CAF9EF7.4010209@draigBrady.com> <1364819905-28909-1-git-send-email-mihai@mihaic.ro> <5169EFA3.60701@draigBrady.com> <4bf2191d-a97a-fe6f-21c3-cc16865e769f@gmail.com> In-Reply-To: <4bf2191d-a97a-fe6f-21c3-cc16865e769f@gmail.com> From: =?UTF-8?Q?Mihai_Capot=C4=83?= Date: Tue, 9 Oct 2018 15:23:09 -0700 Message-ID: Subject: Re: bug#7176: [PATCH] human: add unambiguous block_size_args To: assafgordon@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 7176 Cc: 7176@debbugs.gnu.org, =?UTF-8?Q?P=C3=A1draig_Brady?= 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.0 (-) On Tue, 9 Oct 2018 at 13:41, Assaf Gordon wrote: > > 2. environment variables are frowned upon and not likely to be expanded This patch can be used without environment variables, e.g., "ls -l --block-size=binary". > I'm opting to close this bug, and we can always re-open the bug if > needed. Discussion can continue by replying to this thread, I am still interested in disambiguating the output without calling numfmt. Mihai From unknown Sat Aug 16 11:33:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 07 Nov 2018 12:24:05 +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