Hitachi

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


PATH_CONV_RULE parameter (defines a rule for converting file paths) (Windows only)

Organization of this page

Format

#-adsh_conf PATH_CONV_RULE {1|2}

Description

This parameter defines (selects) a rule for converting file paths. It is effective when file path conversion is defined in the PATH_CONV parameter or the #-adsh_path_var command. If this parameter is omitted, path conversion rule 1 goes into effect.

If a path separator is defined in the PATH_CONV_ENABLE parameter, the separated ranges are converted. The separator defined in the PATH_CONV_ENABLE parameter is converted into a separator to be used by the OS that executes the job definition script.

Operands

1

Specifies selection of path conversion rule 1.

Only a range enclosed in double quotation marks (") is converted.

2

Specifies selection of path conversion rule 2.

Character strings separated by the separators shown below under Separators used in path conversion rule 2 are converted. Character strings that are separated here are further separated by a path separator (defined in the PATH_CONV_ENABLE parameter) and are then converted. Note, however, that characters enclosed in double quotation marks (") and ${ } are not converted.

If the location to be converted is not enclosed in double quotation marks ("), the conversion results will be enclosed in double quotation marks ("). Additionally, the ranges listed below will also be enclosed in double quotation marks (").

  • Path separator

    Converted to ";".

  • $shell-variable-name

    Also includes shell variables that are not specified by the #-adsh_path_var command.

    The range that begins following the dollar sign ($) and ends with the first character that is not an alphanumeric character (a letter if the leading character is a letter) or an underscore (_) is treated as a shell variable name. If there is no shell variable name, the dollar sign ($) alone is not enclosed in double quotation marks (").

  • Range from ${ to }

    Also includes shell variables that are not specified by the #-adsh_path_var command.

Separators used in path conversion rule 2

The following table lists the separators used in path conversion rule 2 and the positions at which these separators are valid or invalid:

Separator

Separator position

Within ' '

Within " "#1

Within ` `#1

Single character following \

Within $( )#1

Within ${ }#1

Other

|

N

N

Y

N

Y

#2

Y

&

N

N

Y

N

Y

#2

Y

;

N

N

Y

N

Y

#2

Y

<

N

N

Y

N

Y

#2

Y

>

N

N

Y

N

Y

#2

Y

(

N

#3

Y

N

Y

#2

Y

)

N

N

Y

N

Y

#2

Y

`

N

Y

Y

N

Y

#2

Y

'

Y

N

Y

N

Y

#2

Y

"

N

Y

Y

N

Y

#2

Y

#

N

N

Y

N

Y

#2

Y

=

N

N

Y

N

Y

#2

Y

Space (including the tab symbol)

N

N

Y

N

Y

#2

Y

Linefeed code

N

N

Y

N

Y

#2

Y

Legend:

Y: The separator is valid.

N: The separator is not valid.

#1

Another range can be nested inside the enclosed range. The following table lists the combinations that can be nested:

Range

Ranges to be nested

' '

" "

` `

Single character following \

$( )

${ }

Within " "

N

N

Y

Y

Y

Y

Within ' '

Y

Y

N

Y

Y

Y

Within $( )

Y

Y

Y

Y

Y

Y

Within ${ }

Y

Y

Y

Y

Y

Y

Legend:

Y: Can be nested.

N: Cannot be nested.

If a character indicating the end of a range is encountered within a range to be nested, it is not treated as the end of a range. For example, if "\"" is specified, the second double quotation mark (") is included in the range following the backslash (\) and is therefore not treated as the end of the double-quotation mark enclosed range that begins with the first double quotation mark (").

If no character indicating the end of a range is found before the end of the line, the entire line including its end is treated as being within the range.

#2

Same as the range in which ${ } is nested.

For example, the vertical bar (|) is valid within a pair of grave accent marks (` `) but is not valid within a pair of double quotation marks (" ").

#3

Only a left parenthesis (() that follows a dollar sign ($() is valid. Other left parentheses are not valid.

Notes

Example

Parameter-setting examples are described below. For a job definition script conversion example, see 2.6.2 Converting path names.