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.
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 |
|
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. |
ADSH_PARSER_LANG |
If you input JSON data for encoding that has a different value from the environment variable LANG of the environment where JP1/Advanced Shell operates, unified encoding can be operated while the adshparsejson command is executed by setting a value for the shell variable. |
ADSH_SPOOL_JOBNAME |
Specifies the spool job name to use when renaming the spool job directory. If the shell variable is a local variable in a function, the specified value is not used to rename the spool job directory. |
Other than the above, if you use the PATH_CONV_VAR parameter or #-adsh_path_var command, you can define and use the shell variable that converts the path of directory between Windows and UNIX. For definition of the shell variable, see 5.8.5 Defining shell variables that handle path names.