Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


#-adsh_path_var command (defines shell variables for handling path names)

Organization of this page

Format

#-adsh_path_var shell-variable-name[, ... shell-variable-name]

Description

This command defines shell variables for handling path names. This command is enabled when the PATH_CONV_ENABLE parameter is defined in the environment file.

The #-adsh_path_var command can be specified at the following locations only:

When a shell variable specified by this command is described at the beginning of a path name, the path and directory separators in that path name as defined by the PATH_CONV_ENABLE parameter are converted to the path and directory separators of the target OS.

A text whose leading part matches the shell variable specified in either of the following formats is treated as a path name:

Variable names must match completely. If shell-variable-name has a suffix consisting of a letter or the underscore (_), it will be evaluated as not to be a targeted shell variable and will not be converted.

After conversion, if the character string to be converted contains a path separator or directory separator defined by the PATH_CONV_ENABLE parameter, that separator is converted according to the OS under which the job definition script will be executed.

The conversion result depends on whether path conversion rule 1 or path conversion rule 2 was set by the PATH_CONV_RULE parameter. For details about the path conversion rules, see PATH_CONV_RULE parameter (defines a rule for converting file paths) (Windows only). For conversion examples of job definition scripts, see 2.6.2 Converting path names.

Arguments

shell-variable-name

~<environment variable name>((1 to 255 bytes))

Specifies the name of an environment variable that is to be used to define a shell variable for handling path names. A maximum of 255 shell variables can be specified. To use the defined shell variable in a job definition script, is must be specified as $shell-variable-name or ${shell-variable-name}.

For details about pre-defined shell variables and shell variable names that cannot be used, see 5.5 Shell variables.

Return codes

Return code

Meaning

0

Normal termination

1

Error termination

Notes