Razii wrote:
> On Tue, 06 May 2008 09:59:33 +0000, Richard Heathfield
> <rjh@[EMAIL PROTECTED]
> wrote:
>
>
>> <shrug> I have no idea. It's bog-standard C, and it works just
>> fine here. If you think the program is broken, perhaps you'd care
>> to explain what rule of C you think I've breached?
>
> This was just weird behavior by cygwin. I renamed the file to
> sumcpp.exe and it works then.
>
> $ time sumcpp.exe < sum.txt
> 2048000
>
> real 0m0.952s
>
> if I rename it back to sum.exe
>
> $ time sum.exe < sum.txt
> 58339 21572
>
> Weird.
>
$ sum --help
Usage: sum [OPTION]... [FILE]...
Print checksum and block counts for each FILE.
-r defeat -s, use BSD sum algorithm, use 1K blocks
-s, --sysv use System V sum algorithm, use 512 bytes blocks
--help display this help and exit
--version output version information and exit
With no FILE, or when FILE is -, read standard input.
Re****t bugs to <bug-coreutils@[EMAIL PROTECTED]
>.
:-)


|