🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1068

Re: Yet Another bourne shell query

#1068
From: Don Bolton
Date: Wed, 05 Sep 1990 01:31
22 lines
1206 bytes
In article <3330@awdprime.UUCP> tif@reed.UUCP (Paul Chamberlain/32767) writes:
>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
>
HUH?  seems like echo "" or exit would go there, or just forget the
else entirely tis an optional item.

>I hope you're not going to all this trouble to use /dev/null though.
>
Best use for /dev/null is a mail forward while you are on vacation :-)

>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: <41831@sequent.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!sequent!lugnut
References: <437@minya.UUCP> <3330@awdprime.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!sequent!lugnut
From: lugnut@sequent.UUCP (Don Bolton)
Newsgroups: comp.unix.shell
Subject: Re: Yet Another bourne shell query
Message-ID: <41831@sequent.UUCP>
Date: 5 Sep 90 01:31:51 GMT
References: <437@minya.UUCP> <3330@awdprime.UUCP>
Reply-To: lugnut@sequent.UUCP (Don Bolton)
Organization: Sequent Computer Systems, Inc
Lines: 22