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.
>>-setenv--ABCD--value-----------------------------------------><
For more information on how to read syntax diagrams, see Syntax Diagrams of the Introduction.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]