From owner-freebsd-current@FreeBSD.ORG Wed Jun 4 06:46:01 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 608B637B412 for ; Wed, 4 Jun 2003 06:46:01 -0700 (PDT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E68F43F75 for ; Wed, 4 Jun 2003 06:46:00 -0700 (PDT) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.9/8.12.9) with ESMTP id h54DjwnA034136; Wed, 4 Jun 2003 15:45:58 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Marc Olzheim From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 04 Jun 2003 15:30:19 +0200." <20030604133019.GA50874@stack.nl> Date: Wed, 04 Jun 2003 15:45:58 +0200 Message-ID: <34135.1054734358@critter.freebsd.dk> cc: current@freebsd.org Subject: Re: 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:46:01 -0000 In message <20030604133019.GA50874@stack.nl>, Marc Olzheim writes: >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 ? mount fdescfs -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.