This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: bash pipe fails in script with subshell/loop cmbination
- From: Eliot Moss <moss at cs dot umass dot edu>
- To: cygwin at cygwin dot com
- Date: Tue, 8 Aug 2017 10:28:50 -0400
- Subject: Re: bash pipe fails in script with subshell/loop cmbination
- Authentication-results: sourceware.org; auth=none
- References: <1502202040.3980767.1066870536.244CE4BA@webmail.messagingengine.com>
- Reply-to: moss at cs dot umass dot edu
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