public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ronald Fischer <ynnor@mm.st>
To: Wouter van Doorn <vandoornw@gmail.com>, cygwin@cygwin.com
Subject: Re: bash pipe fails in script with subshell/loop cmbination
Date: Tue, 08 Aug 2017 14:20:00 -0000	[thread overview]
Message-ID: <1502202040.3980767.1066870536.244CE4BA@webmail.messagingengine.com> (raw)

> 
> 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

             reply	other threads:[~2017-08-08 14:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-08 14:20 Ronald Fischer [this message]
2017-08-08 14:29 ` Eliot Moss
2017-08-08 14:59   ` Nellis, Kenneth
2017-08-08 19:41     ` cyg Simple
  -- strict thread matches above, loose matches on Subject: below --
2017-08-08 13:59 Wouter van Doorn
2017-08-08 14:20 ` Ronald Otto Valentin Fischer
2017-08-08 16:37 ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1502202040.3980767.1066870536.244CE4BA@webmail.messagingengine.com \
    --to=ynnor@mm.st \
    --cc=cygwin@cygwin.com \
    --cc=vandoornw@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).