Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!agate!usenet.ins.cwru.edu!odin!chet From: chet@odin.INS.CWRU.Edu (Chet Ramey) Newsgroups: comp.unix.questions Subject: Re: redirect stdin in k/sh ? Message-ID: <1991Feb11.220203.2872@usenet.ins.cwru.edu> Date: 11 Feb 91 22:02:03 GMT References: <1991Feb10.201058.22238@noose.ecn.purdue.edu> Sender: news@usenet.ins.cwru.edu Reply-To: chet@po.CWRU.Edu Organization: Case Western Reserve Univ. Cleveland, Ohio, (USA) Lines: 21 Nntp-Posting-Host: odin.ins.cwru.edu >What's the difference between the following two ways in handling >stdin in k/sh ? > > foo vs. > foo <&- foo sees its file descriptor 0 as closed, which means that reads on fd 0 return -1 with errno set to EBADF. Chet -- Chet Ramey ``There's just no surf in Network Services Group Cleveland, U.S.A. ...'' Case Western Reserve University chet@ins.CWRU.Edu My opinions are just those, and mine alone.