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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=kl2UNNnTaWt08mtS
	snUK5dOESrEbSxs3wtQbK4kCnjOIdS4zCwFpLx+1y5t6uqRZTpNeO2Ue6uNOsw/h
	1TVNSilpNug5A5rXum7jmuaXNwZvOCWGTwN236/Zy/dkI5/lGIqrMJdnd83MIGU+
	I75EbMR4R6J95Rj7kBd2gsby+vM=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=Z6/VAWH5sB+tIpQRe3jFW1
	8Uhfs=; b=LhdyLtBBVRTS6kWzpKA42vjwF+aKkv72NttYv4T6pw7dyhRhOsGh/k
	ypFybJ3okARXPW7RgPu/Knlz6fuv3Z9vAeh8miEqkLNxasfTcGQTSIpvJBnqoxKj
	QA8yUYlxdtMZ/NdDTJQ+zIvatyEDARTUSAedA82RQARR5xV7au3rI=
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.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=HX-Priority:Normal, UD:ru, H*r:build, H*UA:Bat!
X-HELO: forward103p.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1556910302;	bh=TbFVtADGM/ZEcnt8GpdQLSqL8jBmdI2GMMoqU+1iGnM=;	h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date;	b=sfFScczaNOtwFla2nORQlHwJjbDm50V5UGl5gLBU6THNRZGS75fuj/24Ew/dVHP8n	 MO+snTzLAiwhRLkICaahU9Bn9Ii97PCp8dz9zjarYSCIwTFOOCjOAlgh9wIgH/nPvk	 t6A6d5ZYfWxpY2B0VTMwAURGtIaDH2VTMuoBZU74=
Authentication-Results: mxback11o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Fri, 3 May 2019 21:52:25 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <473270892.20190503215225@yandex.ru>
To: Eliot Moss <moss@cs.umass.edu>, cygwin@cygwin.com
Subject: Re: pipe broken by WSL?
In-Reply-To: <a2cc9af3-eb31-8b7d-e3f4-fa3e2f21cd40@cs.umass.edu>
References: <2a6d7c3d-f8ff-eafe-3048-8bbd689216c5@towo.net> <20190502153726.GA1867@zebra>   <a2cc9af3-eb31-8b7d-e3f4-fa3e2f21cd40@cs.umass.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x43J5HaE030754

Greetings, Eliot Moss!

> On 5/2/2019 11:37 AM, Stephen Carrier wrote:
>> 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" ?

> You seem to be right; when I add < /dev/null as described, I get
> the expected output.

Why not just

    wsl uname <&-

I wonder?


-- 
With best regards,
Andrey Repin
Friday, May 3, 2019 21:51:38

Sorry for my terrible english...
--
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


