Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: Subject: RE: tee piping to head gives error message Date: Mon, 7 Feb 2005 18:31:47 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: X-OriginalArrivalTime: 07 Feb 2005 18:31:47.0202 (UTC) FILETIME=[48027E20:01C50D43] > -----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 AT mace /artimi/firmware> cat diffs.txt | tee tmp2.txt | head -4100 > /dev/nu ll tee: write error dk AT mace /artimi/firmware> cat diffs.txt | tee tmp2.txt | head -4100 > /dev/nu ll dk AT mace /artimi/firmware> cat diffs.txt | tee tmp2.txt | head -4100 > /dev/nu ll dk AT mace /artimi/firmware> cat diffs.txt | tee tmp2.txt | head -4100 > /dev/nu ll tee: write error dk AT mace /artimi/firmware> dk AT mace /artimi/firmware> dk AT mace /artimi/firmware> cat diffs.txt | tee tmp2.txt | head -4100 > /dev/nu ll tee: write error dk AT mace /artimi/firmware> cat diffs.txt | tee tmp2.txt | head -4100 > /dev/nu ll tee: write error dk AT 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/