From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <43797a19394ce8f10a30710c76d1d46b@vitanuova.com> Date: Thu, 31 Aug 2006 21:24:58 +0100 From: rog@vitanuova.com To: 9fans@cse.psu.edu Subject: Re: [9fans] trying to understand how fork/pipe a filtering program In-Reply-To: <200608311955.k7VJtwv29679@demeter.cs.utwente.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: ac94247a-ead1-11e9-9d60-3106f5b1d025 oops skim reading again! i'd thought i'd read "using two pipes unidirectionally *doesn't* make it work." so why can't you just use two pipes unidirectionally? you can't do anything else in this example, because by using the same pipe for input and output, the command itself keeps its own input open, and therefore never receives EOF.