Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
Hi,
$ help declare
says:
  ...
   When used in a function, `declare' makes NAMEs local, as with the
`local'
   command.
   ...
Furthermore, bash allows to define a function within another function:
$ f() {
   echo f
   declare -f g
   g() {
      echo g
   }
}
$ f
f
g
But g is not local:
$ g
g
Thus, either the documentation or bash's behavior seens to be wrong, right?
Cheers,
Chris