Define local variables within a function.
local [-aAfFgilnrtux] [-p] [name[=value] ...]
The options for local are the same as those for declare; please refer to the declare command for details.
name (optional): Variable name or defined function name. value (optional): The value to assign to the variable.
local returns true unless an invalid option is provided, an assignment error occurs, or the command is used outside of a function.
Please refer to the declare command for relevant examples.
help command or the Bash manual (man bash, info bash) for more information.