Path: utzoo!utgpu!watserv1!watmath!att!ucbvax!pasteur!cancun.berkeley.edu!jmn From: jmn@cancun.berkeley.edu (Jan Mark Noworolski) Newsgroups: comp.unix.questions Subject: .login and .cshrc differences Message-ID: <26042@pasteur.Berkeley.EDU> Date: 10 Jul 90 15:50:34 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: jmn@cancun.berkeley.edu.UUCP (Jan Mark Noworolski) Distribution: na Organization: U.C. Berkeley -- ERL Lines: 22 I used to think that this was a real neophyte type of question- but what exactly belongs in the .login and .cshrc files respectively? It seems that rsh only runs .cshrc, rcp gets confused with some .cshrc contents. I want to make sure that my setenv's are in the right place, aliases, and set path. I use a rsh to start up a remote xterm on a system I use and only .cshrc gets run in this case. So does this mean my .login may as well be empty and everything should be in my .cshrc? As an example of a problem I've run into: in my .cshrc (outside the 'if ($?prompt)' ) setenv DISPLAY `who am i | sed 's/.*(//' | sed 's/\..*//'`:0 would confuse rcp. After putting it into the 'if' rcp is fine. Has anybody really nailed down what belongs where and when? -- "It was very stupid of you to have gotten yourself lured into this trap" Big Boy (from Dick Tracy) jmn@united.berkeley.edu, or jmn@power.berkeley.edu