GNU bug report logs - #17553
du unit suggestion

Previous Next

Package: coreutils;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Thu, 22 May 2014 19:48: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


View this message in rfc822 format

From: Reuben Thomas <rrt <at> sc3d.org>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 17553 <at> debbugs.gnu.org
Subject: bug#17553: du unit suggestion
Date: Fri, 23 May 2014 14:02:40 +0100
[Message part 1 (text/plain, inline)]
On 23 May 2014 13:12, Pádraig Brady <P <at> draigbrady.com> wrote:

> tl;dr
>
>   You can get what you want currently by doing:
>
>     du() { env du -B1 "$@" | numfmt --to=iec-i --suffix=B; }
>

Thanks very much, that's certainly good enough for me.

My understanding of the rest of what you wrote is that fixing the
inconsistency in du's output is complicated by backwards compatibility, and
because the code used to do so is used elsewhere in coreutils. Pity. It'd
certainly be nice to see consistent output by default.

With -B '..B' output you mean?
>

Sorry, yes.

Thanks very much for your efforts.
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 28 days ago.

Previous Next


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