From owner-freebsd-current Fri Mar 14 6:36:59 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 650CE37B401 for ; Fri, 14 Mar 2003 06:36:57 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85D0743FAF for ; Fri, 14 Mar 2003 06:36:56 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2EEaph8006579; Fri, 14 Mar 2003 15:36:51 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: ticso@cicely.de Cc: freebsd-current@FreeBSD.ORG Subject: Re: fdescfs broken? From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 14 Mar 2003 15:32:14 +0100." <20030314143213.GH83455@cicely9.cicely.de> Date: Fri, 14 Mar 2003 15:36:51 +0100 Message-ID: <6578.1047652611@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 <20030314143213.GH83455@cicely9.cicely.de>, Bernd Walter writes: >On Fri, Mar 14, 2003 at 03:15:49PM +0100, Poul-Henning Kamp wrote: >> In message <20030314141250.GG83455@cicely9.cicely.de>, Bernd Walter writes: >> >The /dev/fd content looks strange: >> >[160]cicely9# ls -al /dev/fd/ >> >total 33 >> >dr-xr-xr-x 2 root wheel 512 Mar 6 16:59 . >> >dr-xr-xr-x 5 root wheel 512 Mar 6 17:00 .. >> >crw--w---- 1 ticso tty 5, 1 Mar 14 14:50 0 >> >crw--w---- 1 ticso tty 5, 1 Mar 14 14:50 1 >> >crw--w---- 1 ticso tty 5, 1 Mar 14 14:50 2 >> >d-w------- 1 root wheel 512 Feb 28 15:20 3 >> >d--------- 1 root wheel 512 Mar 6 16:59 4 >> >> What is strange about it ? > >After carefully rethinking - nothing. That's why I'm against fdescfs and /dev/fd in principle: They are neither intuitive nor logical. >I'd expected to see devnodes like we have without fdescfs and was >surprised by the directories. >I never used fdescfs before and needed /dev/fd/3 for a shell script. >The script does not work with fdescfs, but of course this could be >for a completly different reason. You cannot access /dev/fd/3 until file desc #3 is actually open so the order of arguments (and bugs in the shell) is important. -- 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