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: Ronald Otto Valentin Fischer <ashi dot niwatori at the-quickest dot com>
- To: Wouter van Doorn <vandoornw at gmail dot com>, cygwin at cygwin dot com
- Date: Tue, 08 Aug 2017 16:20:13 +0200
- Subject: Re: bash pipe fails in script with subshell/loop cmbination
- Authentication-results: sourceware.org; auth=none
- References: <CANZ2p_cQ=A3YShSSLT43=nvuSv-cBeTeOipivaqUf9XSiqyWcA@mail.gmail.com>
>
> 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
--
Ronald Fischer <ronald.fischer@fusshuhn.de>
http://www.fusshuhn.de/
--
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