Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Feb 2003 21:03:12 +0100
From:      phk@freebsd.org
To:        freebsd-current@freebsd.org
Subject:   Re: 5.0 issues 
Message-ID:  <44279.1044475392@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 05 Feb 2003 20:59:27 %2B0100." <200302051959.h15JxRR4081087@lurza.secnetix.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44279.1044475392>