I am writing a bash script that calls functions declared in the parent shell, but it doesn\'t work.
For example:
$ function myfunc() { echo \"Here in
Try
$ export -f myfunc
in the parent shell, to export the function.