Syntax for setting environment variables

Use standard UNIX commands to set environment variables. The examples in the following table show how to set the ABCD environment variable to value for the C shell, Bourne shell, and Korn shell. The Korn shell also supports a shortcut, as the last row indicates. Environment variables are case-sensitive.
Shell Command
C
setenv ABCD value
Bourne
ABCD=value
export ABCD
Korn
ABCD=value
export ABCD
Korn
export ABCD=value
The following diagram shows how the syntax for setting an environment variable is represented throughout this chapter. These diagrams indicate the setting for the C shell; for the Bourne or Korn shells, use the syntax illustrated in the preceding table.

1  setenv ABCD value