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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; q=dns; s=default; b=Wul
	JMCquvaQXdckbQo9phxkyGA9w0Yty3ScW71BJldJWLH+fDzfPEfvlpwkMoTczVEk
	8n7mBb7gTN2V6YulFNDVVAs/Ag9ZJ3BaoUXJj9nqqpseDRafu+duZB+9of0HAU+B
	6kTCA1blcUO6IhApx7/9NEQrdMw5W388jdkyRn2s=
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:to:from:subject:message-id:date:mime-version
	:content-type:content-transfer-encoding; s=default; bh=yVYhEE4HC
	QBS9LIrARyrLCYZIoU=; b=M+1eFAfxrqwx0s+VRUxzYwZEPv8ofXbb28OA72YCg
	YXAl5GtNtW/FPh+QDOuSGk00DDQ8hiqEJSnC/K6knuvlnYCpLvxviVFRNfp9xzV3
	7GL0kKFCvAPcdK27vfNat56Gq+qjEiTJsCWBRFfdHpTyyCG15E9UWqsYN5dGY0Ki
	z4=
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=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit
X-HELO: mout.kundenserver.de
To: The Cygwin Mailing List <cygwin@cygwin.com>
From: Thomas Wolff <towo@towo.net>
Subject: pipe broken by WSL?
Message-ID: <2a6d7c3d-f8ff-eafe-3048-8bbd689216c5@towo.net>
Date: Wed, 1 May 2019 11:20:59 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

Calling WSL seems to break pipe processing:

(echo 1; echo 2) |
while read line
do
   echo $line
   wsl uname
done

The loop is not repeated. Commenting out the wsl command, it works as 
expected. Prefixing wsl with winpty also makes it work.

Thomas

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

