Tuesday, March 31, 2009

UNIX: 'export' vs 'setenv', what is the difference

Both of them have same purpose but which one to use depends on what shell you are using.

If you are using sh and ksh shells, you use 'export'

If you are using csh, you use 'setenv'