Proving which start-up file runs when
Proving which start-up file runs when
Answer
% grep echo ~/.cshrc ~/.login /home/ada/.cshrc:echo "cshrc ran" /home/ada/.login:echo "login ran" % csh cshrc ran % exit
The sub-shell reported `.cshrc` and stayed silent about `.login`. That is the whole rule: `.cshrc` for every shell, `.login` once at login. Aliases go in the first, `setenv` and `umask` in the second.
S&K 3e ch14 §14.6; ch2 §2.8.4; csh(1) STARTUP AND SHUTDOWN