Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!seismo!hao!hplabs!sri-unix!gwyn@brl-vld From: gwyn@brl-vld@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: 4.1cBSD pipe gotcha Message-ID: <4726@sri-arpa.UUCP> Date: Tue, 30-Aug-83 22:44:25 EDT Article-I.D.: sri-arpa.4726 Posted: Tue Aug 30 22:44:25 1983 Date-Received: Fri, 2-Sep-83 17:36:32 EDT Lines: 15 From: Doug Gwyn (VLD/VMB) Would you believe that pipes "succeed" in being stat()ed, but their (device,inode)s are all identical ((0,0) I believe)? I sure hope this is fixed in 4.2BSD, as it really wreaks havoc with programs such as the "idiot-proof" USG "cat": ..... | cat file - | ..... determines that its stdout has the same (device,inode) as one of its inputs and refuses to perform the operation. How I long for the days when pipes were part of the file system. P.S. No flames about whether "cat" should do this safety check, please. If not "cat", then some other more user-oriented program would want to do this, so it is not a null issue.