X-Recipient: archive-cygwin AT delorie DOT 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=CE9SM0cNqAJ3YZjp czNXp+urjkKJiC8ZPz97lP/K0X4Af9zafFmMvujMuLnV70BgL4d1QhHVZt9kQjaI kPdO5DUwUHu/FB5NurDo04Whwsfm2dLX7q+fOYSYOG8IEQoV8YIuT9Li8T5ksUck kVfTAYHrk6kF1gyqCSJfSBHStBk= 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Of8AZlLqReUE+Pd0COPQdn YLwu4=; b=yJGZs2ulZbdkaQYSfnqOCh1t0/kjOATnFzbFXlz+TEBrLr+XjyY9dT 0VVgn6enBDpsEGJeZSLgJI1+uMUXr4CZ5t/LOtBH+6lU49l/b3hRRSsLkwvZlZxD XqODZSen5yKGFtSNP5oMx7TeW5/U+QtyoJUJXikG3+qgtj7B/H4vM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-HELO:sk:mailsrv, HX-Spam-Relays-External:sk:mailsrv, H*r:sk:mailsrv, H*RU:sk:mailsrv X-HELO: mailsrv.cs.umass.edu Reply-To: moss AT cs DOT umass DOT edu Subject: Re: pipe broken by WSL? To: cygwin AT cygwin DOT com References: <2a6d7c3d-f8ff-eafe-3048-8bbd689216c5 AT towo DOT net> <20190502153726 DOT GA1867 AT zebra> From: Eliot Moss Message-ID: Date: Thu, 2 May 2019 12:26:18 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190502153726.GA1867@zebra> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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. Regards - Eliot -- 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