Your message dated Fri, 19 May 2006 08:38:46 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#368026: coreutils: du --max-depth=1 -h /var ** no order in
output ** sort it! *** 006
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: coreutils
Version: 5.2.1-2
Severity: minor
Subject: coreutils: du --max-depth=1 -h /var ** no order in output **
sort it!
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27ltspke9-nf2-v07c-utf8-sata-ehci-experimental
Locale: LANG=sk_SK.UTF-8, LC_CTYPE=sk_SK.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to sk_SK.UTF-8)
Versions of packages coreutils depends on:
ii libacl1 2.2.23-1 Access control list shared
library
ii libc6 2.3.2.ds1-22sarge3 GNU C Library: Shared
libraries an
-- no debconf information
=============
I tested on 4 systems (also ISO-8859-1, english) and I have the same
results:
du --max-depth=1 -h /var gives a mixed (always the same results):
8.0K /var/spool
52K /var/mail
480K /var/www
804K /var/squid
4.0K /var/lock
8.0K /var/tmp
=============
OR
105M /var/lib
27M /var/cache
3,7M /var/backups
4,0K /var/local
8,0K /var/lock
7,2M /var/log
172K /var/run
1,2M /var/spool
11M /var/tmp
12K /var/opt
4,0K /var/mail
816K /var/www
155M /var
=============
Expected behaviour should be:
{sorted by SIZE or ALPHABETICALLY, eg}
*var/backups
*var/cache
*var/log
*var/mail
*var/opt
*var/run
*var/spool
*var/tmp
*var/www
aso.
My info: 006
Thanks for coreutils.
Thanks for Debian (best ever) distro.
Thanks to all Debian package managers.
--
Jan Kunder
jan.kunderHATESPAMgmail.com
--- End Message ---
--- Begin Message ---
The "unix way" to do this would be to use the sort command:
# du --max-depth=1 -h /var | sort +1
473M /var
3.2M /var/backups
306M /var/cache
40K /var/games
73M /var/lib
4.0K /var/local
8.0K /var/lock
25M /var/log
47M /var/mail
4.0K /var/opt
240K /var/run
656K /var/spool
8.0K /var/tmp
19M /var/www
--- End Message ---