I don't know if it's a bug. Manpage says "local" builtin takes all the options that "declare" takes. But, "local -p var" doesn't print anything, where as "declare -p var" does.
f1() { local a=123 local -p a } f2() { local a=123 declare -p a } f1 # prints nothing f2 # prints $a -- William Park <opengeome...@yahoo.ca>