Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.os.linux.misc Subject: Re: The joy of pipes Date: Sun, 17 Nov 2024 05:30:09 -0000 (UTC) Organization: A noiseless patient Spider Lines: 24 Message-ID: References: <20241112111426.00007245@gmail.com> <20241114160907.0000252b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 17 Nov 2024 06:30:09 +0100 (CET) Injection-Info: dont-email.me; posting-host="0e079645d656fd43a936f8dae4bc7735"; logging-data="527655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18S4bYOWqeZ1GtAwE669XoV" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:z4AHoilvQwHrRhp/E6SYud7Y5n0= Bytes: 2173 On Sat, 16 Nov 2024 23:59:41 -0500, 186282@ud0s4.net wrote: > On 11/16/24 5:31 AM, Richard Kettlewell wrote: >> >> “Temporary files the parent can access” is not a good model for a >> couple of reasons: >> >> * The semantics are different. Bytes read from a regular file are still >> there to be read again if you rewind the file; bytes read from a >> pipe are gone. Empty/full files behave differently to empty/full >> pipes. >> >> * Temporary regular files can already be accessed by other processes by >> name, by file descriptor inheritance, or file descriptor passing. > > Didn't say temp disk files were necessarily SUPERIOR, just that they > CAN do most of the stuff pipes are used for and in an easier > user/code-friendly fashion. Not really, no. > SIZE is almost unlimited too. That is another reason they don’t work.