These are 2 forms of setting up the enviornment variable settings.
sh and ksh:
--------
eg:
TERM=sun
export TERM
these 2 command set any environment variable here.
csh:
----
in c shell setenv accomplish the task of those 2 commands alone.
so it depends on your shell, which shell u are using u have to use one of these commands.
-----
Main Topics
Browse All Topics





by: jleviePosted on 2003-10-18 at 07:43:56ID: 9575819
There's no difference between the two commands. Both make env variables available to children of the shell the setenv or export command was executed in. The export command was first defined in the Bourne shell. The setenv command was introduced in csh. Some shells will accept eiter form and some administrators will create an alias for one form in a shell that supports the other command.