Re:Something about functions in Bash (2017)
by jodrellblank on Friday July 06, 2018 @12:29AM
(#17468838)
You can do this in PowerShell also:
get-content function:function_name
`function:` being a filesystem-like PS Provider.
A google search for "RPC in Bash" will take you to a GIST I put up on Github a while back that gives details of how this works.
You can do this in ksh93 also, I believe you use typeset -f instead of declare -f.