Declare a function-local variable
low risk
Limits a variable to the current function in bash.
local name="$1"Inside a function · explain & risk-check →Reference text is hand-written and may be incomplete — check man local for your version. Test destructive commands on a non-production system first.