On Thu, Mar 14, 2024 at 11:09 AM Chet Ramey <chet.ra...@case.edu> wrote:
>
> `local' always operates at the current function scope. `local -p' only
> displays local variables that exist at the current function scope.

Oh shoot. I hadn't considered that 'local -p' and 'declare -p' would
do different things.

Kind of funny that 'local -g' seems to work just fine, doing the same
thing as 'declare -g' (at least in bash 4.2), but whatever.

Sorry for the confusion.

Reply via email to