delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/05/02/22:32:44

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=TcQGGyKLnMt0Xo6c
OM+4fWxZTwke52gJdWUD+lOr+AjdronVFSBSBgi5ZRjK1iL0teQmVXPo7u4QCyKL
a7Ll11cd9phOvAUxQM/QpWPpu1Q9aaR6asrHpL9Z08Nv/oUv3TTbJsQy45vu/CbP
TnUCRDxHSnIetIno8RMfLBEAQo4=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=2TZhoXYc24bAoF5P4MwbaG
t4yNU=; b=AVH3shnVqvsHPUhO7eRUOHutjt8r6y/xrlwqbEjNdQeEF/SLJFmXXc
jZAHGe6rDXfbxfIJMaDjoa62vvt50aL/ebEAUO8jiA45A51H7TjUqBtCTck9ZsUO
bFoV9qNgOF8FJjAEga6aty3PmQ4ZO3w6QdxmR0zIuxiFEw1eFdJZA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*r:212.227.15, H*RU:sk:mrelaye, H*r:sk:mrelaye, HX-Provags-ID:V03
X-HELO: mout.kundenserver.de
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> <a2cc9af3-eb31-8b7d-e3f4-fa3e2f21cd40 AT cs DOT umass DOT edu>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <4c5ab3a4-7fec-bbf5-adb6-87a219dbe0b2@towo.net>
Date: Fri, 3 May 2019 04:32:27 +0200
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: <a2cc9af3-eb31-8b7d-e3f4-fa3e2f21cd40@cs.umass.edu>
X-IsSubscribed: yes
Note-from-DJ: This may be spam

Am 02.05.2019 um 18:26 schrieb 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.
Yes, indeed. Thanks.
Thomas
>
> 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
>


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019