Path: 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 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 [ ];then exec >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