Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!think!barmar From: barmar@think.COM (Barry Margolin) Newsgroups: comp.unix.questions Subject: Re: Diff between set and setenv Message-ID: <39710@think.UUCP> Date: 25 Apr 89 20:47:48 GMT References: <45000019@uicsrd.csrd.uiuc.edu> <2363@solo11.cs.vu.nl> Sender: news@think.UUCP Reply-To: barmar@kulla.think.com.UUCP (Barry Margolin) Organization: Thinking Machines Corporation, Cambridge, MA Lines: 20 In article <2363@solo11.cs.vu.nl> maart@cs.vu.nl (Maarten Litmaath) writes: >leein@uicsrd.csrd.uiuc.edu writes: >\2. What variables should go to .login only, and what variables should >\ go to .cshrc only? > >.login: variables you only want to set ONCE (typically environment variables) > - setenv PATH $HOME/bin:/bin:/usr/bin:/usr/ucb:/usr/local/bin >.cshrc: variables you want to set in EACH invocation > - set history = 50 Note that if you work in a networked environment it may be necessary to put just about everything into .cshrc. If you use rsh to execute commands on other hosts, only the .cshrc will be run, and not the .login. Barry Margolin Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar