Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!mailrus!tut.cis.ohio-state.edu!cwjcc!hal!ncoast!allbery
From: allbery@ncoast.UUCP (Phil Smith)
Newsgroups: comp.unix.wizards
Subject: Re: Make & .cshrc
Message-ID: <12589@ncoast.UUCP>
Date: 19 Sep 88 22:20:19 GMT
References: <21621@tut.cis.ohio-state.edu> <29592@bbn.COM>
Reply-To: allbery@ncoast.UUCP (Brandon S. Allbery)
Followup-To: comp.unix.wizards
Organization: Cleveland Public Access UN*X, Cleveland, Oh
Lines: 23

As quoted from <29592@bbn.COM> by mesard@bbn.com (Wayne Mesard):
+---------------
| From article <21621@tut.cis.ohio-state.edu>, by karl@triceratops.cis.ohio-state.edu (Karl Kleinpaste):
| > You should set prompt
| > iff there already exists a prompt, i.e.,
| > 	if ($?prompt) then
| > 		alias cd 'chdir \!*; set prompt="$cwd> "'
| > 	endif
| 
| Or more generally, put the following line at the top of your .cshrc
| file:
| 
|     if ($?prompt == 0) exit
+---------------

Uh, that may work on recent BSD csh'es, but on mine and most likely in the
ISC csh, it'll cause both .cshrc and the csh to exit -- you won't even be
able to log in!

++Brandon
-- 
Brandon S. Allbery, uunet!marque!ncoast!allbery			DELPHI: ALLBERY
	    For comp.sources.misc send mail to ncoast!sources-misc
"Don't discount flying pigs before you have good air defense." -- jvh@clinet.FI