5.5.2 Shell variables whose values are set by the user
The following table lists and describes the shell variables whose values can be set by the user in JP1/Advanced Shell.
Table 5‒32: Shell variables that can be used in JP1/Advanced Shell
Shell variable name
|
Value set by the user
|
CDPATH
|
Specifies a candidate path for a search when the target directory specified in the cd command does not exist under the work directory.
|
ENV
|
-
Windows and Linux only
If YES is specified in the KSH_ENV_READ parameter or the parameter is omitted, this variable specifies the name of the .env file to be loaded when the shell starts.
-
AIX, HP-UX, and Solaris only
If YES is specified in the KSH_ENV_READ parameter, this variable specifies the name of the .env file to be loaded when the shell starts.
|
FPATH
|
Specifies the directory that stores the function definition file. The specified directory is searched when the preload functionality
is enabled for a referenced function or the function to be executed is undefined. The variable reads the contents of the file
with the same name as the function name, defines the function in the current environment, and then executes it.
|
HOME
|
Specifies the home directory.
|
IFS
|
Abbreviation of Internal Field Separator. The specified characters are used as string separators. The first characters in
IFS, $*, are used to separate arguments for substitution. The initial values are the space, tab, and end-of-line characters.
|
PATH
|
Specifies a command search path.
|
PS4
|
Specifies the prompt character string placed at the beginning of each line when the xtrace shell option is enabled. The initial value is +.
|
SHELL
|
Specifies the path name of a shell that is retained during shell execution.
|
TMPDIR
|
Changing this shell variable has no effect on temporary files because all temporary files are created in the directory specified
in the TEMP_FILE_DIR environment setting parameter.
|
You can use the #-adsh_path_var command to define and use shell variables for converting directory paths between Windows and UNIX. For details about defining
shell variables, see 5.8.5 Defining shell variables that handle path names.
To Page Top