Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    In what shell are piped commands run in parallel? How could that even occur? B has to read A's output (as B's input), which, as far as I'm aware, means A needs to produce an output before B can read it. Additionally, the line that could produce similar behavior using command substitution would be: B $(A), not A $(B), which is the OPs question. Commented Jan 28, 2019 at 19:24
  • 1
    @DeNovo : If you have pipe A|B, the usual implementation is to start both processes A and B, and feed the stdout of A to the stdin of B. Without this, a construct such as A|tail -f would not work. Commented Jan 29, 2019 at 10:09