From owner-freebsd-ports Mon Mar 10 17:31:51 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 B398E37B401 for ; Mon, 10 Mar 2003 17:31:49 -0800 (PST) Received: from mail.inka.de (quechua.inka.de [193.197.184.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B109843F75 for ; Mon, 10 Mar 2003 17:31:47 -0800 (PST) (envelope-from mailnull@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with gbsmtp id 18sYc7-0007pc-0A; Tue, 11 Mar 2003 02:31:31 +0100 Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.12.8/8.12.6) with ESMTP id h2B1O2Z8042284 for ; Tue, 11 Mar 2003 02:24:03 +0100 (CET) (envelope-from mailnull@localhost.mips.inka.de) Received: (from mailnull@localhost) by kemoauc.mips.inka.de (8.12.8/8.12.8/Submit) id h2B1O2LR042283 for freebsd-ports@freebsd.org; Tue, 11 Mar 2003 02:24:02 +0100 (CET) From: naddy@mips.inka.de (Christian Weisgerber) Subject: Re: bash2 or devfs problem? Date: Tue, 11 Mar 2003 01:24:01 +0000 (UTC) Message-ID: References: Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-ports@freebsd.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 Conrad Sabatier wrote: > I've noticed that bash's process substitution fails under -CURRENT. Yes. > Is this a bash problem, or something in devfs not working as expected? Both. Sort of. devfs provides /dev/fd/[0-2], but does not cover any additional file descriptors. It does not provide fdescfs functionality. bash's autoconf test checks whether /dev/fd/* is supported, succeeds for one of the stdio descriptors, and mistakenly concludes from this that full support for all file descriptors is available. There are two ways to fix this. You can simply mount fdescfs: fdesc /dev/fd fdescfs rw 0 0 Or you can disable the test for /dev/fd/* during the bash build. In the absence of a functioning /dev/fd, bash will fall back to implementing process substitution through temporary named pipes. I've sent unanswered reports to bash-bugs and to obrien, and I have opened a PR (#48434). -- Christian "naddy" Weisgerber naddy@mips.inka.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message