[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
the -x option of du misbehaves depending on arguments
From: |
Mike Frysinger |
Subject: |
the -x option of du misbehaves depending on arguments |
Date: |
Sat, 2 Dec 2006 18:45:30 -0500 |
User-agent: |
KMail/1.9.5 |
if `du -x` is given a bunch of dirs and files in the same directory, then it
fails to descend into the subdirs ... for exampe:
$ mkdir foo
$ cd foo
$ echo somestring > file
$ mkdir emptydir nonemptydir
$ cp file nonemptydir/
[these work]
$ du
8 ./nonemptydir
4 ./emptydir
20 .
$ du *
4 emptydir
4 file
8 nonemptydir
$ du -x
8 ./nonemptydir
4 ./emptydir
20 .
[this fails]
$ du -x *
4 emptydir
4 file
4 nonemptydir
tried with coreutils-6.6 and latest cvs ... coreutils-5.94 seems to work OK
though ...
-mike
pgpMBOARiQ5gO.pgp
Description: PGP signature
- the -x option of du misbehaves depending on arguments,
Mike Frysinger <=