bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minor bug in df


From: Luke Kendall
Subject: Minor bug in df
Date: Mon, 11 Jun 2007 00:10:01 +1000
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

The column formatting of the plain "df" output is misaligned, making it
hard to read.  Same is true for -P option.  For example:

: /home/data/audio; df
Filesystem           1K-blocks Used Available Use% Mounted on
/dev/md0              12389244   5420288   6339616  47% /
varrun                  517924       180    517744   1% /var/run
varlock                 517924         0    517924   0% /var/lock
procbususb               10240       184     10056   2% /proc/bus/usb
udev                     10240       184     10056   2% /dev
devshm                  517924         0    517924   0% /dev/shm
lrm                     517924     18132    499792   4%
/lib/modules/2.6.17-11-386/volatile
/dev/hda1             46082420  19358248  26724172  43% /C
/dev/hda2              2044272    152512   1891760   8% /D
/dev/md2             119623076  71464176  42082324  63% /home
/dev/md1              12389244   5664076   6095828  49% /mnt/alt-slash

It should be:

: /home/data/audio; df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/md0              12389244   5420288   6339616  47% /
varrun                  517924       180    517744   1% /var/run
etc.

df -h output is also misaligned, but not as badly.  E.g.:

: /home/data/audio; df -h
Filesystem            Size Used Avail Use% Mounted on
/dev/md0               12G  5.2G  6.1G  47% /
varrun                506M  180K  506M   1% /var/run
etc.

: /home/data/audio; df --version
df (GNU coreutils) 5.96
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjorn Granlund, David MacKenzie and Paul Eggert.

luke




reply via email to

[Prev in Thread] Current Thread [Next in Thread]