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.

Required fields*

2
  • 1
    “it just cannot read any more from the pipe” — that's true here, but it wouldn't be the case with a named pipe. With a named pipe, the reader could continue reading and would receive data if another process opens the named pipe for writing and writes to it. Commented Sep 20, 2020 at 17:44
  • @Gilles'SO-stopbeingevil' Agreed -- I answered the question on the basis of a shell simple anonymous pipe. I believe a construct like { echo; sleep 5; echo bar; } | cat lets all three processes inherit the pipe fd for writing. Commented Sep 20, 2020 at 17:59