Subject: RE: .login .profile .cshrc
To: Steve Revilak <revilak@umbsky.cc.umb.edu>
From: Guy Santiglia <fredfl2@guy.chonju21.net>
List: port-mac68k
Date: 07/09/1999 14:19:38
On Mon, 5 Jul 1999, Steve Revilak wrote:
> Guy Wrote:
>
> /Now I had a hell of a time getting this to work. First I tried just
> /like they said and put this into .login in root's home directory. (I'm
> /using tcsh) That wasn't setting the variables when I logged on. Then
> /I tried putting those lines in .xsession because I'm running xdm.
>
> Were you logging in as root?
Yes, I was.
>
> /Did I do the right thing by putting the path setting script lines in the
> /.cshrc file in /root? Should I have just put them in /etc/csh.chsrc?
> /
> / Why did .login seem to have no effect on setting those path variables?
>
> The big difference between .login and .cshrc is that .login in only
> evaluated once -- when you log on, and .cshrc is evaluated every time
> you execute a subshell. Just to see what's going on put the line
>
> echo "bottom of login"
>
> at the bottom of .login the line
>
> echo "bottom of cshrc"
>
> at the bottom of your .cshrc.
>
> Then login, startx, open a new window, open another new window, open
> another new window, etc. You'll see the line from .cshrc printed each
> time.
>
Yes, I tried that and I found that .cshrc is the only one that seem
to be executed when I log on. I'm using xdm and starting up with
the tcsh shell.
Thanks for that experiment.
Guy
____________________________________________________________
Guy Santiglia Quadra 610, 50 MHZ, NetBSD 1.4!
South Korea
____________________________________________________________