local
Declare local variables and give them attributes. tldr-pages
On several platforms
Several platforms
Declare a string variable with the specified value
local variable="value"IdentifyDeclare an integer variable with the specified value
local -i variable="value"IdentifyDeclare an array variable with the specified value
local variable=(item_a item_b item_c)IdentifyDeclare an associative array variable with the specified value
local -A variable=([key_a]=item_a [key_b]=item_b [key_c]=item_c)IdentifyDeclare a readonly variable with the specified value
local -r variable="value"IdentifyDisplay help
local --helpIdentify