bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with wc


From: Bob Proulx
Subject: Re: Problem with wc
Date: Thu, 14 Jun 2007 10:07:21 -0600
User-agent: Mutt/1.5.9i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]