This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: tee piping to head gives error message


> -----Original Message-----
> From: cygwin-owner On Behalf Of Dave Korn
> Sent: 07 February 2005 18:13


> 
> > But the number of lines/bytes at which the error disappears 
> > does not seem to be constant.


  Ah, I just managed to reproduce this.  That is indeed rather strange.  Hmm.  

  Oh, hang on, it gets more interesting, I just got it to *really* fail.  Here's
a test on a file with 4207 lines in it.....

dk@mace /artimi/firmware> cat diffs.txt  | tee tmp2.txt  | head -4100 > /dev/nu
ll
tee: write error
dk@mace /artimi/firmware> cat diffs.txt  | tee tmp2.txt  | head -4100 > /dev/nu
ll
dk@mace /artimi/firmware> cat diffs.txt  | tee tmp2.txt  | head -4100 > /dev/nu
ll
dk@mace /artimi/firmware> cat diffs.txt  | tee tmp2.txt  | head -4100 > /dev/nu
ll
tee: write error
dk@mace /artimi/firmware>
dk@mace /artimi/firmware>
dk@mace /artimi/firmware> cat diffs.txt  | tee tmp2.txt  | head -4100 > /dev/nu
ll
tee: write error
dk@mace /artimi/firmware> cat diffs.txt  | tee tmp2.txt  | head -4100 > /dev/nu
ll
tee: write error
dk@mace /artimi/firmware> cat diffs.txt  | tee tmp2.txt  | head -4100 > /dev/nu
ll
Terminate batch job (Y/N)?


  Wow.  The last time where I tried it, it paused for a long time as if it had
hung, and then managed to kill my entire bash shell and cygwin.bat session.  I
guess there really is a bug there.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]