emanuele6 1708214417 learn The "local" and "declare" builtins are not entirely equivalent: 1) "local" can only be used from a function (or file source in a function). 2) `local -' (restore shell options after the function returns) can only be used with "local". 3) `local'/`local -p' only show variables declared in the current function's scope; `declare'/`declare -p' show all observable variables.