Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fortune.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!harpo!seismo!hao!hplabs!hpda!fortune!rpw3 From: rpw3@fortune.UUCP Newsgroups: net.unix-wizards Subject: Re: bug in ucbmail and 4.1bsd csh - (nf) Message-ID: <2041@fortune.UUCP> Date: Sat, 17-Dec-83 11:06:12 EST Article-I.D.: fortune.2041 Posted: Sat Dec 17 11:06:12 1983 Date-Received: Tue, 20-Dec-83 01:36:24 EST Sender: notes@fortune.UUCP Organization: Fortune Systems, Redwood City, CA Lines: 37 #R:ucf-cs:-111900:fortune:11600033:000:1072 fortune!rpw3 Dec 17 04:00:00 1983 This is the top of my ".cshrc". I also use the if($prompt), but include most of the aliases in any case, since I like to have those command available in shell escapes (yes, it's slow). The only way I know to handle the ".cshrc before .login" problem is by looking at my $PATH (which is changed from system default in .login). I needed that for the SSH (sub-shell prompt) kludge, which makes each additional level of sub-shell have another ">" in the prompt: 7> csh 1>> date Sat Dec 17 03:50:23 PST 1983 2>> ^D 8> I had to do that since 4.1 csh doesn't default unset variables to the null string, the way good old Bourne does. When building the string of >>>'s, I had to know when the first one was. ------------ if( $path[1] != /fs/rpw3/bin ) then # we haven't seen .login yet setenv SSH '\!' # avoid "unset variable" error echo '[source .cshrc]' endif setenv SSH $SSH'>' if ($?prompt) then set prompt=$SSH' ' set mail=/usr/spool/mail/rpw3 endif # set function keys alias a 'echo -n ^L;echo -n' alias b '( cd $HOME/mail ; mail \!* )' <>