Your message dated Sun, 13 Nov 2005 13:31:01 -0500
with message-id <[EMAIL PROTECTED]>
and subject line du -s -c subdirectory behavior
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)
--------------------------------------
Received: (at submit) by bugs.debian.org; 8 Jun 1997 00:09:46 +0000
Received: (qmail 3503 invoked from network); 8 Jun 1997 00:09:45 -0000
Received: from gateway.compass-da.com (HELO extractor.compass-da.com) ([EMAIL
PROTECTED])
by master.debian.org with SMTP; 8 Jun 1997 00:09:45 -0000
Received: by extractor.compass-da.com; id AA20200; Sat, 7 Jun 97 17:09:41 PDT
Received: from clsi.columbia.compass-da.com(162.17.30.22) by
extractor.compass-da.com via smap (V1.3)
id xma020197; Sat, 7 Jun 97 17:09:11 -0700
Received: from darkstar ([EMAIL PROTECTED] [162.17.30.95]) by
clsi.columbia.compass-da.com (8.6.12/8.6.9) with SMTP id UAA23138; Sat, 7 Jun
1997 20:09:00 -0400
Reply-To: [EMAIL PROTECTED]
Sender: [EMAIL PROTECTED]
Message-Id: <[EMAIL PROTECTED]>
Date: Sat, 07 Jun 1997 20:11:48 -0400
From: "Daniel S. Barclay" <[EMAIL PROTECTED]>
X-Mailer: Mozilla 3.01Gold (X11; U; Linux 2.0.27 i486)
Mime-Version: 1.0
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: "du -sc ...xxx ...xxx/*" skips directories
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Package: fileutils
Version: 3.13-4
The du utility (/usr/bin/du) sometimes gets confused when it is given
overlapping arguments of the form "...xxx" and "...xxx/*", along with
the "-s" and "-s" flags.
I say sometimes because I thought I saw some cases in which du worked
correctly. (However, I can't find any such cases at the moment.)
The symptom is that it prints results for the "...xxx" directory,
but prints nothing for the "...xxx/*" directories. (It does print data
for "...xxx/*" _files_.)
Example 1 (breaks, with or without trailing slashes):
I have a directory with a number of subdirectories (and one file):
$ ls -la /home/daniel/explore/
total 30
drwxr-xr-x 15 daniel users 1024 Apr 12 19:31 .
drwxr-xr-x 32 daniel users 6144 Jun 7 19:00 ..
-rw-r--r-- 1 root root 336 Apr 19 19:49 .whatsit
-rwxr-xr-x 1 daniel users 12916 Sep 10 1995 exp_atomic
drwxr-xr-x 2 daniel users 1024 Feb 9 16:07 glob
drwxr-xr-x 2 daniel users 1024 Mar 3 1996 hashing
drwxr-xr-x 7 daniel users 1024 May 18 19:55 inet
drwxr-xr-x 2 daniel users 1024 Feb 9 16:07 ipc
drwxr-xr-x 3 daniel users 1024 Feb 9 16:07 jobcntl
drwxr-xr-x 2 daniel users 1024 Feb 9 16:07 misc
drwxr-xr-x 2 daniel users 1024 Feb 9 16:07 modem
drwxr-xr-x 3 daniel users 1024 Apr 29 23:18 perl
drwxr-xr-x 2 daniel users 1024 Feb 9 16:07 rawio
drwxr-xr-x 2 daniel users 1024 Feb 9 16:07 shell
drwxr-xr-x 2 daniel users 1024 Mar 18 12:50 shlib
drwxr-xr-x 3 daniel users 1024 Feb 9 16:07 tape
drwxr-xr-x 2 daniel users 1024 Feb 9 16:07 termcap
$
"du -sc" seems to work when given a single argument:
$ du -sc /home/daniel/explore
7198 /home/daniel/explore
7198 total
$
$ du -sc /home/daniel/explore/
7198 /home/daniel/explore
7198 total
$
$ du -sc /home/daniel/explore/*
9 /home/daniel/explore/exp_atomic
39 /home/daniel/explore/glob
6 /home/daniel/explore/hashing
1780 /home/daniel/explore/inet
643 /home/daniel/explore/ipc
246 /home/daniel/explore/jobcntl
3242 /home/daniel/explore/misc
17 /home/daniel/explore/modem
772 /home/daniel/explore/perl
39 /home/daniel/explore/rawio
7 /home/daniel/explore/shell
15 /home/daniel/explore/shlib
362 /home/daniel/explore/tape
19 /home/daniel/explore/termcap
7196 total
$
$ du -sc /home/daniel/explore/*/
39 /home/daniel/explore/glob
6 /home/daniel/explore/hashing
1780 /home/daniel/explore/inet
643 /home/daniel/explore/ipc
246 /home/daniel/explore/jobcntl
3242 /home/daniel/explore/misc
17 /home/daniel/explore/modem
772 /home/daniel/explore/perl
39 /home/daniel/explore/rawio
7 /home/daniel/explore/shell
15 /home/daniel/explore/shlib
362 /home/daniel/explore/tape
19 /home/daniel/explore/termcap
7187 total
$
However, combining those (overlapping) arguments confuses du:
$ du -s -c /home/daniel/explore /home/daniel/explore/*
7198 /home/daniel/explore
9 /home/daniel/explore/exp_atomic
7207 total
$
Specifically, it does not list the _directories_ specified by
"/home/daniel/explore/*")
I would guess that this is a design problem in the interaction of the
-s and -c options. In any case, the "-c" option shouldn't cause
requested directories to be suppressed.
Daniel
--
Daniel S. Barclay
[EMAIL PROTECTED] / [EMAIL PROTECTED]
---------------------------------------
Received: (at 10430-done) by bugs.debian.org; 13 Nov 2005 18:31:03 +0000
>From [EMAIL PROTECTED] Sun Nov 13 10:31:03 2005
Return-path: <[EMAIL PROTECTED]>
Received: from vms048pub.verizon.net ([206.46.252.48])
by spohr.debian.org with esmtp (Exim 4.50)
id 1EbMd5-00064J-AD
for [EMAIL PROTECTED]; Sun, 13 Nov 2005 10:31:03 -0800
Received: from osgiliath.mathom.us ([70.108.64.202])
by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep
9 2005)) with ESMTPA id <[EMAIL PROTECTED]> for
[EMAIL PROTECTED]; Sun, 13 Nov 2005 12:31:02 -0600 (CST)
Received: from localhost (localhost [127.0.0.1])
by osgiliath.mathom.us (Postfix) with ESMTP id 1A4DA6031E0 for
<[EMAIL PROTECTED]>; Sun, 13 Nov 2005 13:31:02 -0500 (EST)
Received: from osgiliath.mathom.us ([127.0.0.1])
by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id 19682-05-7 for <[EMAIL PROTECTED]>; Sun,
13 Nov 2005 13:31:02 -0500 (EST)
Received: by osgiliath.mathom.us (Postfix, from userid 1000)
id F33D160049B; Sun, 13 Nov 2005 13:31:01 -0500 (EST)
Date: Sun, 13 Nov 2005 13:31:01 -0500
From: Michael Stone <[EMAIL PROTECTED]>
Subject: du -s -c subdirectory behavior
To: [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii; format=flowed
Content-disposition: inline
X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us
User-Agent: Mutt/1.5.11
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_01 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
Version: 5.93-1
Desired behavior appears to be implemented by upstream in coreutils
5.93-1
Mike Stone
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]