7.3.16 ESCAPE_SEQ_ECHO_HEX parameter (specifies whether ASCII code characters in hexadecimal notation are to be interpreted as escape characters)
Syntax
#-adsh_conf ESCAPE_SEQ_ECHO_HEX {YES|NO}
Description
This parameter specifies whether ASCII code characters in hexadecimal notation are to be interpreted as escape characters by the echo command. This parameter is valid when either of the following conditions is satisfied:
The -e option is specified in the echo command.
Neither the -e nor the -E option is specified in the echo command but YES is specified in the ESCAPE_SEQ_ECHO_DEFAULT parameter.
Operands
- YES
Specifies that ASCII code characters expressed in 1- or 2-digit hexadecimal notation are to be interpreted as escape characters.
- NO
Specifies that ASCII code characters expressed in 1- or 2-digit hexadecimal notation are not to be interpreted as escape characters.
Notes
If this parameter is defined in both the system environment file and the job environment file, the definition in the job environment file takes effect.
A parameter error occurs if this parameter is defined multiple times in the same environment file on the same host.
If a value that is outside the ASCII code range is specified as an argument in the echo command, the content output will be consistent with the character encoding specified for the terminal. Consequently, unprintable characters might produce an incorrect output.
Example
In this example, ASCII code characters expressed in 1- or 2-digit hexadecimal notation are interpreted as escape characters by the echo command.
Contents of environment file:
#-adsh_conf ESCAPE_SEQ_ECHO_HEX YES
Contents of job definition script:
STR="\x48\x49\x54\x41\x43\x48\x49" echo -e $STR
Contents to be output to the standard output:
HITACHI
In this example, ASCII code characters expressed in 1- or 2-digit hexadecimal notation are not to be interpreted as escape characters by the echo command.
Contents of environment file:
#-adsh_conf ESCAPE_SEQ_ECHO_DEFAULT YES #-adsh_conf ESCAPE_SEQ_ECHO_HEX NO
Contents of job definition script:
STR="\t\x48\x49\x54\x41\x43\x48\x49" echo $STR
Contents to be output to the standard output:
tab-character\x48\x49\x54\x41\x43\x48\x49