*BSD News Article 12934


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!zaphod.mps.ohio-state.edu!menudo.uh.edu!uuneo!sugar!peter
From: peter@NeoSoft.com (Peter da Silva)
Subject: Re: VM problems w/unlimited memory?
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Wed, 17 Mar 1993 13:22:26 GMT
Message-ID: <C41BtF.3vB@sugar.neosoft.com>
References: <1993Mar16.031317.8533@fcom.cc.utah.edu> <1o4spvINNl1v@usenet.INS.CWRU.Edu> <1993Mar16.221837.10302@fcom.cc.utah.edu>
Lines: 18

In article <1993Mar16.221837.10302@fcom.cc.utah.edu> terry@cs.weber.edu (A Wizard of Earth C) writes:
> >Since Posix.2 allows multidigit file descriptor specs in redirections,
> >there are no `safe' file descriptors for shells to use internally

> I don't understand from the
> code why it's necessary to get anything other than the next available
> descriptor; the ones the shell cares about, 0, 1, and 2, are already
> taken at that point; if nothing else a search starting a 3 would be
> reasonable.

What happens if some script then tries to use that FD with

	foo 3>&1 &
-- 
Peter da Silva.  <peter@sugar.neosoft.com>.
 `-_-'   Oletko halannut suttasi tänään?
  'U`    
Tarjoilija, tämä ateria elää vielä.