X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:date:to:subject:message-id:references
	:mime-version:content-type:content-transfer-encoding
	:in-reply-to; q=dns; s=default; b=c8Z0YpLufEZwFZ7RbQwNCineP6ptXP
	Z8171qQt4+KwsVefROfSwnuGv69CzaAEd++OonZxKPHtw0dkd4lSKNkLMEXwvaHd
	xZEyVxxrC4jfDhNCshrwYZZpMeNyc6MeoD2R3r+lH3+dj95E6zQ/JU3HxwtCSlOG
	keHbcAYXYdCtg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:date:to:subject:message-id:references
	:mime-version:content-type:content-transfer-encoding
	:in-reply-to; s=default; bh=TD6fPYKxFSERCUvN824Z7mqu3Fk=; b=q59h
	KSkRJarMMTbEju4TwP9gH4puuTZvxMrgqmHOScZi38k4jl7tOh58mXE/KnxSmEXV
	tLXmBS+EwEo8EiA0i9tHQWKv0K0+AsaVr6J4MFpceZ7PmHcAS+2RSiXERUqRpDD8
	0EMfcr/vBI8F2Xw0+T4Q6GXuIIVSBzUJ718B56A=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*M:zebra, HX-HELO:sk:mail-pl, H*RU:sk:mail-pl, HX-Spam-Relays-External:sk:mail-pl
X-HELO: mail-pl1-f171.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=berkeley-edu.20150623.gappssmtp.com; s=20150623;        h=from:date:to:subject:message-id:references:mime-version         :content-disposition:content-transfer-encoding:in-reply-to         :user-agent;        bh=9IgftxjG1yLLo434sOMcPnYRp/UpLidjR/EikZCEUSQ=;        b=CS+YTI0VUaZLTeCfzwxxSQ/cnxylbRduBwsASmjnUAnl0xW/Z35mGEHvZJSI5s3Xt7         afyRkbTNkNx8UW9jKfxvVopgCniHLfYQGJh7YUXnRrkunjv5SRNH/Ja/nhtzwm8D9bQE         iHYVrN8ZtuNp1XmHZ5U10I4vzAT7SgCfUclTokuDcjd6J6KkqzOG2XJUKBhDT9gzvwXf         tI/63l9tKp5Gpsv4WwpUJmWGb0zalwn+EipkJos4Fz76zVO07/OUz42mDvDSysb5uhEO         XZnHIe52jrbl91yyaOOpNgykQNEfLtzcZ/lzNv3buukC3ml5T/RS/29IK/g4iQzYpzIg         XZcg==
From: Stephen Carrier <carrier@berkeley.edu>
Date: Thu, 2 May 2019 08:37:26 -0700
To: cygwin@cygwin.com
Subject: Re: pipe broken by WSL?
Message-ID: <20190502153726.GA1867@zebra>
References: <2a6d7c3d-f8ff-eafe-3048-8bbd689216c5@towo.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <2a6d7c3d-f8ff-eafe-3048-8bbd689216c5@towo.net>
User-Agent: Mutt/1.9.1 (2017-09-22)
X-IsSubscribed: yes

On Wed, May 01, 2019 at 11:20:59AM +0200, Thomas Wolff wrote:
> Calling WSL seems to break pipe processing:
> 
> (echo 1; echo 2) |
> while read line
> do
>   echo $line
>   wsl uname
> done

I don't know about wsl, but could it be absorbing the standard input?
What if "wsl uname" is replaced with "wsl uname < /dev/null" ?

Stephen Carrier
BEAR Center

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

