Date: Mon, 10 Mar 2003 18:19:54 -0600 From: Larry Rosenman <ler@lerctr.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk>, Conrad Sabatier <conrads@cox.net> Cc: freebsd-current@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG Subject: Re: bash2 or devfs problem? Message-ID: <13630000.1047341994@lerlaptop.iadfw.net> In-Reply-To: <5257.1047339488@critter.freebsd.dk> References: <5257.1047339488@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
--On Tuesday, March 11, 2003 00:38:08 +0100 Poul-Henning Kamp <phk@phk.freebsd.dk> wrote: > In message <XFMail.20030310155011.conrads@cox.net>, Conrad Sabatier > writes: >> I've noticed that bash's process substitution fails under -CURRENT. >> >> For (an admittedly stupid, trivial) example: >> >> diff <(cat file1) <(cat file2) >> >> errors out with: >> >> diff: /dev/fd/63: No such file or directory >> diff: /dev/fd/62: No such file or directory >> >> Apparently, the nodes for the named pipes are not being created as they >> should. >> >> Is this a bash problem, or something in devfs not working as expected? > > That's a good question... > > Has anybody found out what the standards conformant thing is for /dev/fd ? > > presently we do only 0,1 & 2, with the std{in,out,err} symlinks. > > If we are required to do all filedescriptors, we should do so with > fdescfs by default. It is supposed to (based on MY reading of the fd(4) man page on a UnixWare (SysVr5) system) be ALL filedescriptors. this paragraph seems to be the cogent part: These files, conventionally called /dev/fd/0, /dev/fd/1, /dev/fd/2, and so on, refer to files accessible through file descriptors. If file descriptor n is open, these two system calls have the same effect: fd = open("/dev/fd/n",mode); fd = dup(n); The full manpage is visible at: http://www.lerctr.org:8458/en/man/html.4/fd.4.html LER > > -- > 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. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message > -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13630000.1047341994>