-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2006-01-19 at 19:47 +0100, Per Jessen wrote:
There was a thread on it last week, on which you participated.
I know, I know - and like I said, I wasn't sure we had established for a _fact_ that '-x' doesn't work (which to me = it has a bug).
Well...
The command "du -hsx /*" does not skip "differenf filesystems" mounted at the root, because the * is expanded by the shell. The end result is that it lists the size of all partitions. It is not a bug, but it doesn't work.
Haha, how do you distinguish between "it doesn't work" and "it's a bug"?
Degree of "nonworkingness"? :-P
I think '-x' should skip mounted filesystems whether they're explicitly specified or just discovered whilst traversing the filesystem. The man page doesn't say much about it, so it doesn't sound like "works as designed" to me.
I think that how it should work, ie, skip mounted filesystems as you say. However, reading the man page I understand it is working as documented - but it shouldn't, IMO: `-x' `--one-file-system' Skip directories that are on different file systems from the one that the argument being processed is on. Then, the important thing to note is which is the filesystem where "the argument being processed is on". I think that when the "*" is expanded by the shell, then each mounting point becomes one of the fylesystems where "the argument being processed is on"... to our disgust. We don't get what we want, so the command line doesn't work. But it is not a bug, that's the (obscure) documented behavior :-( - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD0DM2tTMYHG2NR9URAlUDAKCUcf79x9PtwimZeq/PjUdpXA0vGQCfZkNh RQJhQwWpvreWaDfhUVlchn8= =v+bS -----END PGP SIGNATURE-----