slow find . -type d

2002-03-23 Thread Pavol Juhas
Hello, I am using find 4.1 under Cygwin 1.3.10 / WinXP. I have observed that find . -type d is about 3 times slower than find . and about 100 times slower than cmd.exe /C dir /B/S/AD $ time find . -type d > /dev/null 0.39s user 1.12s system 93% cpu 1.617 total $ time find . > /dev/n

bug in /usr/bin/printf "%4.0f\n" 0.1

2002-05-22 Thread Pavol Juhas
Hi, I am using recent Cygwin on WindowsXP professional. I have found this bug in when using /usr/bin/printf: If printf "%4.0f" rounds its argument to 0, it only prints 3 characters instead of 4, e.g.: $ printf "%4.0f\n%4.0f\n" 0 0.1 0 0 Can you also see this? Originally, I have found this p