devfs and /dev/fd/3
Poul-Henning Kamp
phk at phk.freebsd.dk
Wed Jun 4 06:46:01 PDT 2003
In message <20030604133019.GA50874 at 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 at 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.
More information about the freebsd-current
mailing list