Figure 3-1 Different Shell Settings Shell Command C setenv ABCD values Bourne ABCD=valueexport ABCD Korn ABCD=valueexport ABCD Korn export ABCD=value Korn-shell syntax supports a shortcut, as shown in the last line of Figure 3-1.
C
setenv ABCD values
Bourne
ABCD=valueexport 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 shown in Figure 3-1.
For more information on how to read syntax diagrams, see "Command-Line Conventions" in the Introduction.
Viewing Your Current Settings After one or more Informix products are installed, enter the following command at the system prompt to view your current environment settings.
BSD UNIX
env
UNIX System V
printenv
Unsetting Environment Variables To unset an environment variable, enter the following command. Modifying the Setting of an Environment Variable Sometimes you must add information to an environment variable that is already set. For example, the PATH environment variable is always set in UNIX environments. When you use an Informix product, you must add to the PATH the name of the directory where the executable files for the Informix products are stored. In the following example, the INFORMIXDIR is /usr/informix. (That is, during installation, the Informix products were installed in the /usr /informix directory.) The executable files are in the bin subdirectory, /usr/informix/bin. To add this directory to the front of the C shell PATH environment variable, use the following command: