6/22 What's the difference between unix set and setenv?
\_ setenv sets an environment variable that children of a process
will have access to. set is accessible only within a given
process. -dim
\_ There is no difference - neither one exists. Some shells
have a "set" command, some have "setenv", some have both,
some have neither. It's a shell thing, not a UNIX command.
\_ asshole...
\_ set and setenv are, specifically, only used by csh and tcsh
(and other shells that copy them). "set" sets a variable for
use by csh/tcsh, and "setenv" sets an environment variable
for use by everything run beneath that shell (i.e. all commands
run in it). "set" requires an =, e.g.
set ignoreeof=2 mail=/var/mail/$user filec
(note filec equals nothing, it is merely being "set" in a
boolean sense)
where as setenv can only take one argument with no =:
setenv HOME /tmp/hozer --dbushong |