Bash can print a function defintion:$ bash -c 'y(){ echo z; }; export -f y; export -f'y (){    echo z}declare -fx yHowever this fails under POSIX Bash, /bin/sh and /bin/dash:$ bash --posix -c 'y(){ echo z; }; export -f y; export -f'export -f yCan a function definition be printed under a POSIX shell?
POSIX print function definition
shell;function;posix