From owner-freebsd-current@FreeBSD.ORG Wed Jun 4 06:30:26 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF81237B401 for ; Wed, 4 Jun 2003 06:30:26 -0700 (PDT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9329C43FA3 for ; Wed, 4 Jun 2003 06:30:25 -0700 (PDT) (envelope-from marcolz@stack.nl) Received: by mailhost.stack.nl (Postfix, from userid 65534) id C1A8E1F003; Wed, 4 Jun 2003 15:30:23 +0200 (CEST) Received: from turtle.stack.nl (turtle.stack.nl [2001:610:1108:5010:2e0:81ff:fe22:51d8]) by mailhost.stack.nl (Postfix) with ESMTP id A0C6F1F001 for ; Wed, 4 Jun 2003 15:30:19 +0200 (CEST) Received: by turtle.stack.nl (Postfix, from userid 333) id 9E63C1CC2E; Wed, 4 Jun 2003 15:30:19 +0200 (CEST) Date: Wed, 4 Jun 2003 15:30:19 +0200 From: Marc Olzheim To: current@freebsd.org Message-ID: <20030604133019.GA50874@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD turtle.stack.nl 5.1-BETA FreeBSD 5.1-BETA X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: devfs and /dev/fd/3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2003 13:30:27 -0000 Hi. I've seen the question once before, but it was not answered (on-list ?), so now that I run in on it, I'd like to know what to do: On FreeBSD 4.x, without devfs, the following worked: ( echo foo | tee /dev/fd/3 | tr f F ) 3>&1 It should produce both "foo" and "Foo" FreeBSD 5 with devfs, however, does not create a /dev/fd/3 upon opening filedescriptor 3 by the shell, so there's no device to write to... How can I fix or circumvent this, aside from mounting a ufs partition with mknod-ed files over /dev/fd ? Zlo