I usually connet to SunOS host in my school via telnet.
Nowadays, I'm trying to use jdk in that machine.
To redirect the display to my computer's X-window in my home
, I inserted the command,
setenv DISPLAY myip:0.0
in .cshrc file( currently, I'm using C-shell).
(eg:'myip' is my ip address).
However, when I invoke 'appletviewer' , it tries to connet to
the local machine's X server in my school.
so, I typed 'setenv' command. The result is
(eg:'localmachine' is the name of machine in my school).
I coulnd't know why the environment vailable wasn't changed.
Later I found that
setenv DISPLAY localmachine:0.0
command is in my '.login' file.
I removed the line from .login file then invoked
'appletviwer'and then, everything was ok.
Appletviewer appeared on my screen .
I'm sorry to tell you so far the behind story of my question.
my question is
The contents in .login file override the contents in .cshrc file ?
and I eager to know about the precedence.
login -> invoking shell -> load & exec .login script
-> load & exec .cshrc script
Is it right ?