From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8003 invoked by alias); 8 Aug 2017 14:20:49 -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 5881 invoked by uid 89); 8 Aug 2017 14:20:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:353 X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Aug 2017 14:20:41 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 46B2420AFD; Tue, 8 Aug 2017 10:20:40 -0400 (EDT) Received: from web2 ([10.202.2.212]) by compute6.internal (MEProxy); Tue, 08 Aug 2017 10:20:40 -0400 X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 268756264D; Tue, 8 Aug 2017 10:20:40 -0400 (EDT) Message-Id: <1502202040.3980767.1066870536.244CE4BA@webmail.messagingengine.com> From: Ronald Fischer To: Wouter van Doorn , cygwin@cygwin.com MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" Subject: Re: bash pipe fails in script with subshell/loop cmbination Date: Tue, 08 Aug 2017 14:20:00 -0000 X-IsSubscribed: yes X-SW-Source: 2017-08/txt/msg00086.txt.bz2 > > 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 I have: GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin) Ronald -- 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