du: cache directory size

2008-07-03 Thread Mildred
Hi, I noticed that du takes a long time to scan directories and measure disk usage. I was thinking that perhaps caching the size of directories could bu useful. Perhaps, after du computes the size of a directory, it could write its size in its extended attributes (if the filesystem support it).

finger pinky commands reports improper exit status

2008-07-03 Thread Halesh S
Test 1: -- $ finger some-user finger: 1: no such user. $echo $? 0 Test 2: -- $pinky some-user LoginName TTY Idle When Where $echo $? 0 Verified in coreutils-6.9 Patch to fix the issue in pinky(1) ---

Re: du: cache directory size

2008-07-03 Thread Andreas Schwab
Mildred [EMAIL PROTECTED] writes: I was thinking that perhaps caching the size of directories could bu useful. Perhaps, after du computes the size of a directory, it could write its size in its extended attributes (if the filesystem support it). Next time, du would only compare the directory

Re: du: cache directory size

2008-07-03 Thread Philip Rowlands
On Wed, 2 Jul 2008, Mildred wrote: I was thinking that perhaps caching the size of directories could bu useful. Perhaps, after du computes the size of a directory, it could write its size in its extended attributes (if the filesystem support it). Next time, du would only compare the directory

Re: du: cache directory size

2008-07-03 Thread Pádraig Brady
Mildred wrote: Hi, I noticed that du takes a long time to scan directories and measure disk usage. I was thinking that perhaps caching the size of directories could bu useful. Perhaps, after du computes the size of a directory, it could write its size in its extended attributes (if the

wc -m count is wrong

2008-07-03 Thread Hossain, Syed
Hi gurus, I am surprised that I could not found any posting related to this, I was doing simple character count and here is the output from wc: /home/shossain$ echo 1234 | wc -m 5 /home/shossain$ Obviously I was expecting a count of 4 but wc printed out 5. I have tried different

Makefile.am issue (and patch)

2008-07-03 Thread Brian Silverman
I'm having a small issue with make install of coreutils. I've included below a patch that solves my problem. I am using coreutils-6.12, and building it under cygwin, and I'm cross-compiling it to a PPC-440. Here's my build steps: ./configure --host=powerpc-440-linux-gnu

Re: du: cache directory size

2008-07-03 Thread Mildred
Le Thu 03/07/2008 à 14:29 Philip Rowlands à écrit: Unfortunately neither the atime nor mtime of a directory would necessarily show a change to the disk usage of the enclosed files. Consider a logfile, for example; the filesize grows continuously, but makes no change to the directory.

Re: wc -m count is wrong

2008-07-03 Thread Bob Proulx
Hossain, Syed wrote: I am surprised that I could not found any posting related to this, Here is a recent one. :-) http://lists.gnu.org/archive/html/bug-coreutils/2008-04/msg00238.html /home/shossain$ echo 1234 | wc -m 5 Obviously I was expecting a count of 4 but wc printed out 5. I have

Re: tee logs no output if stdout is closed

2008-07-03 Thread Phillip Susi
Andreas Schwab wrote: It would match the behaviour as defined by ASYNCHRONOUS EVENTS in 1.11 Utility Description Defaults. Could you quote that section or give me a url to somewhere I can see it myself? I have no idea what it says nor where to look it up. Also what about the issue where

(no subject)

2008-07-03 Thread Craig Naumann
hello, i cant use the ls command in cygwin, it says command not found. ___ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils

Re: finger pinky commands reports improper exit status

2008-07-03 Thread Halesh S
The last patch has missied for no-args. The attached patch will fix the issue. Thanks, Halesh n 7/3/08, Halesh S [EMAIL PROTECTED] wrote: Test 1: -- $ finger some-user finger: 1: no such user. $echo $? 0 Test 2: -- $pinky some-user LoginName