Ooops... some more testing...
L
First) readonly & export by show vars in a re-usable format, however,
this doesn't work for functions.
---
It actually seems to be re-usable... though not nearly as
concisely as the var listing format.
Second) What is the official way to list functions w/their
flags+definitions
in a way reusable as input?
---
See above.
Third) How can one print the flags on a single function?
using> declare -pf <funcname>
output:
<funcname> ()
{
<content>
}
declare -frx <funcname>
Which REALLY BEGS the QUESTION:
why [is] the "declare [flags] name=value"
format ... prevented from working for functions?
Sure seems like it would allow for some better consistency in
some circumstances, not to mention a more compact function-definition
form for re-use.