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:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=jli5V3nSRRcSxmpj vyFRG8A6dwg/2fK/0YGKMEBmKvvKe7RuL1/fKX1QIT6ysYWInxTAUOU3h7LK6n0R GF3DpamQwKnaesZ7BMe5VhbuWDr9h2V+ZoiB/7f4hpmA5Wj+OVma3ZT0wy90RXUl ZuX6gNAtf2nsQ03G/6Mz6WW9cr8= 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:references:to:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Q/+efeHg/BfWp7Yx2P8kob f+pLg=; b=uXnpMBEoLXj2CiC8UYVJELgFguqmFvK/6yOraPxRqQ5ZMKDAN8OgGQ PFZxozBdG9DvVd1S+UZUBw/2kyuE7n1+8ThRNhsLzhqCHgj2GrostKKlaFbwDidf koiWHZNOunBHPaTeGaTXQ6Y00oatqL0ynwlHA+574OicJKkhSui8k= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*r:ip*192.168.0.2, H*RU:!192.168.0.2!, cygcheck, anti-virus X-HELO: mailsrv.cs.umass.edu Reply-To: moss AT cs DOT umass DOT edu Subject: Re: bash pipe fails in script with subshell/loop cmbination References: <1502202040 DOT 3980767 DOT 1066870536 DOT 244CE4BA AT webmail DOT messagingengine DOT com> To: cygwin AT cygwin DOT com From: Eliot Moss Message-ID: Date: Tue, 8 Aug 2017 10:28:50 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1502202040.3980767.1066870536.244CE4BA@webmail.messagingengine.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 8/8/2017 10:20 AM, Ronald Fischer wrote: >> >> TWO - this fails, apparently (warning: my guess) at the pipe >> $ for j in 1 2;do echo $j $(echo hello | cat);done >> 1 >> 2 > > This works for me: > > $ for j in 1 2;do echo $j $(echo hello | cat);done > 1 hello > 2 hello It also works for me. If it is not a version issue, then I wonder about BLODA. Maybe anti-virus or similar tools are wrapping process creation in such a way that things get confused. Try cygcheck, etc. Regards - EM -- 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