local - declare variables local to the current function invocation.
local [-airx] [name[=value] ...]
local declares variables local to the current function invocation. It may only be used while a shell function is running. With no operands, it succeeds without changing state.
Each operand must be a valid shell variable name, assignment, or indexed-array assignment. If a name is declared without an explicit value, Rush initializes the local from a matching assignment prefix when one is present; otherwise the local starts unset.
-a-i-r-x--Zero on success, one when used outside a function or when a declaration fails, and two for invalid options.