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*

4
  • Your question is unclear. Can you provide a code sample? Commented Apr 5, 2011 at 6:47
  • Update to my question: I think(?) I've worked out why it is happening, but I have no idea of how to get around it.. It seems to be that when tee finishes sending it's last data, it exits and passes control to the following cat.. However my >(process) is still processing the last piece of data... I've tried wait but it has no effect. I suppose that is because process substitution is not a "normal" child process... btw, sleep 1 works, but that's just guesswork and what if it takes 10 seconds longer?.. there must be anoter way.. Commented Apr 5, 2011 at 10:37
  • What shell is that? For once, it's important: bash, ksh and zsh don't implement process substitutions in exactly the same way. IIRC it's come up before on this site; unfortunately I can't find that thread (I guess it didn't have “process substitution” spelled out). Commented Apr 5, 2011 at 20:13
  • I'm using GNU bash, version 4.1.5(1)... (I've included it in the question body). Commented Apr 6, 2011 at 6:05