Greg Wooledge <[email protected]> writes:
> I'd be totally OK with restricting the function namespace a bit more.
> Function names should not be allowed to contain backticks or less-than
> or greater-than signs (in my opinion). I'm still undecided about
> parentheses, but I'm leaning toward "denied".
I'd be perfectly fine if function names had to be "names", and my memory
is that old versions of Bash enforced that. But the manual page hints
that was changed, and probably for a reason. So proceed with caution.
When in posix mode,
fname must be a valid shell name and may not be the name of one
of the POSIX special builtins. In default mode, a function
name can be any unquoted shell word that does not contain $.
Dale