From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87980 invoked by alias); 8 Aug 2017 14:29:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 87954 invoked by uid 89); 8 Aug 2017 14:29:02 -0000 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 Received: from mailsrv.cs.umass.edu (HELO mailsrv.cs.umass.edu) (128.119.240.136) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Aug 2017 14:29:01 +0000 Received: from [192.168.0.2] (cpe-108-183-161-11.maine.res.rr.com [108.183.161.11]) by mailsrv.cs.umass.edu (Postfix) with ESMTPSA id 0D2D24059B10; Tue, 8 Aug 2017 10:28:57 -0400 (EDT) Reply-To: moss@cs.umass.edu Subject: Re: bash pipe fails in script with subshell/loop cmbination References: <1502202040.3980767.1066870536.244CE4BA@webmail.messagingengine.com> To: cygwin@cygwin.com From: Eliot Moss Message-ID: Date: Tue, 08 Aug 2017 14:29:00 -0000 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 X-SW-Source: 2017-08/txt/msg00087.txt.bz2 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