Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <4159C755.82BB9DA2@dessent.net>
Date: Tue, 28 Sep 2004 13:19:33 -0700
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
MIME-Version: 1.0
CC: cygwin mailing-list <cygwin@cygwin.com>
Subject: Re: "Broken pipe" warning from bash.
References: <n2m-g.cjbbtl.3vveifr.1@buzzy-box.bavag> <6.1.2.0.1.20040929001114.03ec1eb0@mail.ros.com.au>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

Errol Smith wrote:

> >=== Begin tc-pipe.sh ===
> >#!/bin/bash
> >
> >for t in a b; do
> >  seq 1 2
> >done | head -n 1
> >
> >==== End tc-pipe.sh ====
> 
>   I was going to say "use a recent snapshot because the 'Broken Pipe'
> problems were fixed by the Gold-Star deserving Pierre"... BUT I tried your
> testcase and it fails (intermittently) even with the latest snapshot
> (20040928).
>   Pierre's patch DID fix the broken pipe issues I reported so this might be
> a different problem.

Even stranger, it only seems to fail if the script is in a file.  If you
type it at a prompt (on one line or not, doesn't matter) you don't get
the error.

Brian

--
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/

