Pat Robinson wrote:
> cat foo | wc -l 
> works the first time but will hang on subsequent attempts (foo is a
> ordinary text file).
> cat foo | more 
> works fine time after time

That is really strange.  I can't imagine what the problem would be in
that case.  It is almost like no EOF is being recieved when piping.

> I'm running 6.9 coreutils on Windows XP x64

Try this test:

  wc -l < foo

Does that hang?  Try this test.  Does this hang?

  cat foo | cat | more

I would really like to see the result of 'strace' on wc.

  strace wc -l < foo

But I don't think strace is available on your system.  If it were that
would trace the system calls made by the program and we would be able
to (hopefully) see what it is doing.  Obviously wc is not hanging for
others using the program so this must be something specific to your
system or to the binary compilation that you are using.  I am sorry
but I don't have any further suggestions.

Bob


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to