Diff between set and setenv

Maarten Litmaath maart at cs.vu.nl
Tue Apr 25 04:27:15 AEST 1989


leein at uicsrd.csrd.uiuc.edu writes:
\In a csh under BSD

\1.  There are things that are to be 'set' and things to be 'setenv'.
\    What is the difference conventionally or logically?

setenv'ed variables will be exported to all programs you execute from your
shell: they are put into the ENVIRONMENT (get it? set-ENV)

\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

\3. What set and what setenv variables
\   can be transferred from the login shell to the newly created shells?

All setenv'ed variables, no set variable.

\4  Where in the UNIX manual can I find those things in a well organized
\   form?

csh(1), execve(2)
-- 
 "If it isn't aesthetically pleasing, |Maarten Litmaath @ VU Amsterdam:
  it's probably wrong." (jim at bilpin). |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list