Diff between set and setenv

Barry Margolin barmar at think.COM
Wed Apr 26 06:47:48 AEST 1989


In article <2363 at solo11.cs.vu.nl> maart at cs.vu.nl (Maarten Litmaath) writes:
>leein at 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 at think.com
{uunet,harvard}!think!barmar



More information about the Comp.unix.questions mailing list