Two vi questions.

Root Boy Jim rbj at dsys.ncsl.nist.gov
Tue Sep 19 04:13:33 AEST 1989


? From: "Blair P. Houghton" <bph at buengc.bu.edu>

? No, it's ME I need to fix.

? for the past forever, I've been having that problem.  Now I am told
? that vi does indeed pass the globbing onto csh, and that it's only
? because I am to bonehead-f****ing lazy to put

?     if ( $?prompt ) then
? 	set prompt="subwhat? "
?     else
? 	unset prompt
?     endif

The else clause is unnecessary. Also, you might as well simply exit
your .cshrc at this point, as you most likely don't want any aliases
or variables set. The general form of .cshrc should be:

	<stuff you always want to do>
	if ($?prompt == 0) exit
	<interactive stuff>

	Root Boy Jim and
	the GNU Bohemians



More information about the Comp.unix.questions mailing list