GNU bug report logs - #47085
du: why does 'usage' show prefixes 'Z' or 'Y' if they are disallowed?

Previous Next

Package: coreutils;

Reported by: L A Walsh <coreutils <at> tlinx.org>

Date: Fri, 12 Mar 2021 04:54:02 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 47085 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Golden <gdg <at> zplane.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 47085 <at> debbugs.gnu.org, L A Walsh <coreutils <at> tlinx.org>
Subject: Re: bug#47085: du: why does 'usage' show prefixes 'Z' or 'Y' if they
 are disallowed?
Date: Fri, 12 Mar 2021 13:22:26 -0700
Paul Eggert <eggert <at> cs.ucla.edu> [2021-03-12 11:46:52 -0800]:
> On 3/11/21 8:53 PM, L A Walsh wrote:
> > Why are those suffixes listed as valid under the program 'usage'
> > and manpage, when they are automatically disallowed?
> 
> They are valid if your computer has wide-enough integers. As far as I know
> no platform supports Y and only one or two supports Z, but the documentation
> is future-proofing.
> 
> Conversely, if you're running on a really small computer that doesn't even
> support 64-bit integers, even 'T' is too wide.
> 
> I doubt whether it's worth complicating the manual for this minor detail, as
> the current diagnostic "'Y" too large" is accurate as far as it goes.
> 

The manual actually does address this briefly:

coreutils.info 8.32, Section 2.3:

   "Large sizes like ‘1Y’ may be rejected by your computer due to
    limitations of its arithmetic."






This bug report was last modified 3 years and 149 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.