Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!beta!hc!ames!xanth!kyle From: kyle@xanth.UUCP (Kyle Jones) Newsgroups: comp.unix.questions Subject: Re: Problem with rcp/rsh/rdump Message-ID: <2696@xanth.UUCP> Date: Fri, 9-Oct-87 04:33:52 EDT Article-I.D.: xanth.2696 Posted: Fri Oct 9 04:33:52 1987 Date-Received: Sun, 11-Oct-87 13:16:28 EDT References: <441@nysernic> <759@gargoyle.UChicago.EDU> Lines: 14 Keywords: Where are you? Summary: use if (?$prompt == 0) exit 0 In <759@gargoyle.UChicago.EDU>, chris@gargoyle.UChicago.EDU writes: > # > # Check to see if this is an interactive shell... > if ($?prompt) then > ... > endif An oft missed optimization of this is if ($?prompt == 0) exit 0 which allows csh to skip parsing the rest of the file. kyle jones old dominion university, norfolk, va usa