From owner-freebsd-current Wed Feb 5 12: 3:15 2003 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 332A537B401 for ; Wed, 5 Feb 2003 12:03:14 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E84043F43 for ; Wed, 5 Feb 2003 12:03:13 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h15K3CYu044280 for ; Wed, 5 Feb 2003 21:03:12 +0100 (CET) (envelope-from phk@freebsd.org) To: freebsd-current@freebsd.org Subject: Re: 5.0 issues From: phk@freebsd.org In-Reply-To: Your message of "Wed, 05 Feb 2003 20:59:27 +0100." <200302051959.h15JxRR4081087@lurza.secnetix.de> Date: Wed, 05 Feb 2003 21:03:12 +0100 Message-ID: <44279.1044475392@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200302051959.h15JxRR4081087@lurza.secnetix.de>, Oliver Fromme writes : >1. I have some shell scripts that make use of redirections >with file descriptors (3>&1 and /dev/fd/3 etc.). Those >worked under 4.x out of the box, but didn't work in 5.0, >because there is no /dev/fd/3 in DEVFS. I solved this by >manually mounting FDESCFS over /dev/fd -- is that the right >solution, or is there a better way? There is a bug in the /bin/sh which I belive may be present in 5.0-R where the shell uses fd=3 internally. For the other part of the question: yes, that is the right way if you want to use filedescriptors > 2. -- 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-current" in the body of the message