From owner-freebsd-ports Mon Mar 10 16:20: 9 2003 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12E8A37B404; Mon, 10 Mar 2003 16:20:06 -0800 (PST) Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1D0543F3F; Mon, 10 Mar 2003 16:20:04 -0800 (PST) (envelope-from ler@lerctr.org) Received: from pppth08-259.ght.iadfw.net (pppth08-259.ght.iadfw.net [207.136.52.133]) (authenticated bits=0) by lerami.lerctr.org (8.12.8/8.12.8/20030225) with ESMTP id h2B0JufS027974; Mon, 10 Mar 2003 18:19:58 -0600 (CST) Date: Mon, 10 Mar 2003 18:19:54 -0600 From: Larry Rosenman To: Poul-Henning Kamp , Conrad Sabatier 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> X-Mailer: Mulberry/3.0.2 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --On Tuesday, March 11, 2003 00:38:08 +0100 Poul-Henning Kamp wrote: > In message , 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