Arch: Sun 4/330
I have implemented a global cshrc-file by putting this line into
every users .cshrc-file:
So when a user starts a shell, /etc/csh.cshrc is executed BEFORE anything
Now I want to put a command into /etc/csh.cshrc that terminates BOTH the
source of /etc/csh.cshrc AND the execution of the users .cshrc-file that
started the source.
I have tried many variants, but non of them seems to work.
"exit" only terminates the source of /etc/csh.cshrc but not the execution
of the .cshrc-file.
"kill -9 $$" kills BOTH the /etc/csh.cshrc, .cshrc AND the original
shell. But that is too much.
Is there a standard-solution?
I looked in the FAQ-list but couldn't find any references.
The manual doesn't say anything about this.
Please respond by E-mail, and I shall summarice to comp.unix.questions and
Systemadministrator, Datakontoret, Aarhus University
Phone : +45 86 20 27 11 ext. 4993
Monday : 10-12
Tuesday : 12-14
Wednesday : 12-14
Thursday : 12-14
Friday : 10-11