Path: utzoo!attcan!utgpu!watmath!att!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!oliveb!tymix!cirrusl!sun505!dhesi From: dhesi@sun505.UUCP (Rahul Dhesi) Newsgroups: comp.unix.questions Subject: Re: Two vi questions. Message-ID: <869@cirrusl.UUCP> Date: 22 Sep 89 01:11:26 GMT References: <20884@adm.BRL.MIL> Sender: news@cirrusl.UUCP Reply-To: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) Organization: Cirrus Logic Inc. Lines: 19 In article <20884@adm.BRL.MIL> rbj@dsys.ncsl.nist.gov (Root Boy Jim) writes: > > if ($?prompt == 0) exit > I had csh scripts like this; they broke after an OS upgrade from 4.3BSD to Mt Xinu's More/BSD. I think the longer form if ($?prompt) then ... endif will be more portable. My guess is that when it sees "exit", csh can't decide whether to exit just the script being source'd or to exit itself entirely. -- Rahul Dhesi UUCP: oliveb!cirrusl!dhesi