Article View: comp.unix.shell
Article #1013Re: Yet Another bourne shell query
From: Paul Chamberlain/32767
Date: Fri, 31 Aug 1990 13:14
Date: Fri, 31 Aug 1990 13:14
16 lines
951 bytes
951 bytes
In article <437@minya.UUCP> jc@minya.UUCP (John Chambers) writes: >I basically want to write something like: > if [ <file 0 is open> ];then exec</dev/null;fi This seems to work: if read x then : okay else exec < /dev/null fi I hope you're not going to all this trouble to use /dev/null though. Paul Chamberlain | I do NOT represent IBM tif@doorstop, sc30661@ausvm6 512/838-7008 | ...!cs.utexas.edu!ibmaus!auschs!doorstop.austin.ibm.com!tif
Technical Details
Message-ID:
<3330@awdprime.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!romp!auschs!awdprime!doorstop.austin.ibm.com!tifReferences:
<437@minya.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!romp!auschs!awdprime!doorstop.austin.ibm.com!tif From: tif@doorstop.austin.ibm.com (Paul Chamberlain/32767) Newsgroups: comp.unix.shell Subject: Re: Yet Another bourne shell query Message-ID: <3330@awdprime.UUCP> Date: 31 Aug 90 13:14:55 GMT References: <437@minya.UUCP> Sender: news@awdprime.UUCP Reply-To: tif@reed.UUCP (Paul Chamberlain/32767) Organization: IBM AWD, Austin, TX Lines: 16