bug in ucbmail and 4.1bsd csh

Steven M. Kramer smk at linus.UUCP
Sun Dec 11 04:42:08 AEST 1983


The -c in the mail is not really a bug.  The basic format that SHOULD
be used for most cshrc files should be:

if ($?prompt)
	<most of your commands, set, aliases, ...>
else
	<stuff you set for programs, like vispell -- remember that?>
endif

What this will do is improve performance by NOT doing the commands
you use interactively (the 1st ones) when the csh is called from
programs or you run shell scripts.  I've used this for 1.5 years and
it works great.  However, since cshrc is called before login, you
have to kludge login a bit because certain things may not be set
right.  However, it is easily solvable.
-- 
	--steve kramer
	{allegra,genrad,ihnp4,utzoo,philabs,uw-beaver}!linus!smk	(UUCP)
	linus!smk at mitre-bedford						(MIL)



More information about the Comp.unix.wizards mailing list