~/ learn/ comp-325/ cards/ Start-up files and the exported environment
1 of 10

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

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/94253408-baa7-4682-b52d-0d140d2449d2/flashcard utf-8 LF