6.2.15 Displaying function information (info functions command)
The info functions command displays information about functions. The abbreviation for the info functions command is i f. The following shows the format of the info functions command:
info functions[ function-name]
When a function name is specified in the argument, the command displays that function name and the corresponding file name and line number. If the argument is not specified, the command displays all function names and their file names and line numbers. The following shows the display format:
Function File:Line function-name file-name:line-number ...
-
function-name: Name of a defined function. When all functions are displayed, this information is displayed in ASCII code order of the function names. A maximum of 31 bytes can be displayed for each function name. If a function name consists of more than 31 byes, only the first 31 bytes are displayed. The command adjusts the column based on the length of the function names.
-
file-name: Name of the job definition script file in which the function is defined.
-
line-number: Line number at which the function is displayed.
The following describes the info functions command's processing.
- When the info functions command argument is omitted
-
The command displays all function names and the corresponding file names and line numbers.
- When the info functions command argument is specified
-
-
Name of an existing function
The command displays the specified function's name and the corresponding file name and line number.
-
Other
The command outputs an error message.
-
- Notes:
-
Information about functions specified in the job definition script or in an external script specified in the #-adsh_script extended script command can be referenced even before the job definition script executes because this information is loaded automatically when the adshexec command starts. However, information about functions that are not specified in the #-adsh_script extended script command is not displayed while the job definition script is being run by the run command and until the processing defining that function is completed.
- Example of output
-
This example displays function names and the corresponding file names and line numbers:
Function File:Line funcA script1.ash:100 funcB script2.ash:10 funcXXX script1.ash:50