From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RDNS_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: (qmail 32609 invoked from network); 11 Mar 2020 22:57:16 -0000 Received-SPF: pass (minnie.tuhs.org: domain of minnie.tuhs.org designates 45.79.103.53 as permitted sender) receiver=inbox.vuxu.org; client-ip=45.79.103.53 envelope-from= Received: from unknown (HELO minnie.tuhs.org) (45.79.103.53) by inbox.vuxu.org with ESMTP; 11 Mar 2020 22:57:16 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 8E35B9BB64; Thu, 12 Mar 2020 08:57:11 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 8666B9BB47; Thu, 12 Mar 2020 08:56:46 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 075139BB47; Thu, 12 Mar 2020 08:56:44 +1000 (AEST) Received: from lax.lemis.com (www.lemis.com [45.32.70.18]) by minnie.tuhs.org (Postfix) with ESMTP id 3BB859BB46 for ; Thu, 12 Mar 2020 08:56:43 +1000 (AEST) Received: from eureka.lemis.com (aussie-gw.lemis.com [167.179.139.35]) by lax.lemis.com (Postfix) with ESMTP id B91C0280AF; Wed, 11 Mar 2020 22:56:39 +0000 (UTC) Received: by eureka.lemis.com (Postfix, from userid 1004) id F38B7263595; Thu, 12 Mar 2020 09:56:38 +1100 (AEDT) Date: Thu, 12 Mar 2020 09:56:38 +1100 From: Greg 'groggy' Lehey To: Dave Horsfall Message-ID: <20200311225638.GG89512@eureka.lemis.com> References: <202003031815.023IFSlD493028@darkstar.fourwinds.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Zi0sgQQBxRFxMTsj" Content-Disposition: inline In-Reply-To: Organization: LEMIS, 29 Stones Road, Dereel, VIC, Australia Phone: +61-3-5309-0418 Mobile: +61-490-494-038. Use only as instructed. WWW-Home-Page: http://www.lemis.com/grog X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 User-Agent: Mutt/1.6.1 (2016-04-27) Subject: Re: [TUHS] Command line options and complexity X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --Zi0sgQQBxRFxMTsj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wednesday, 11 March 2020 at 14:18:08 +1100, Dave Horsfall wrote: > > The "ls" command for example really needs an option-ectomy; I find that I > don't really care about the exact number of bytes there are in a file as > the nearest KiB or MiB (or even GiB) is usually good enough, so I'd be > happy if "-h" was the default with some way to turn it off (yes, I know > that it's occasionally useful to add them all up in a column, but that > won't tell you how many media blocks are required). A good example. But you're not removing options, you're just redefining them. In fact I find the -h option particularly emetic, so a better choice in removing options would be to remove -h and use a filter to mutilate the sizes: $ ls -l | humanize But that's a pain, isn't it? That's why there's a -h option for people who like it. Note that you can't do it the other way round: you can't get the exact size from -h output. And then there's the question why you don't like the standard output. Because the number strings are too long and difficult to read, maybe? That's the rationale for the -, option. > Quickly now, without looking: which option shows unprintable > characters in a filename? Unless you use it regularly (in which > case you have real problems) you would have to look it up; I find > that "ls ... | od -bc" to be quicker, especially on filenames with > trailing blanks etc (which "-B" won't show). This is arguably a bug in the -B option. I certainly don't think the pipe notation is quicker. But it's nice to have both alternatives. Greg -- Sent from my desktop computer. Finger grog@lemis.com for PGP public key. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA --Zi0sgQQBxRFxMTsj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAl5pbKYACgkQIubykFB6QiMvRwCdEpDPfa/V3iRmA6UiFYeUl7s2 pngAn1cu04NATSu6CBB3TA8crt9MZekP =plH9 -----END PGP SIGNATURE----- --Zi0sgQQBxRFxMTsj--