How do I export a function from zsh, so that I can use it in gnu parallel?
example:
function my_func(){ echo $1;}
export -f my_func
parallel "my_func {}" ::: 1 2
in bash will output
1
2
whereas in zsh it will output error messages
/bin/bash: my_func: command not found
/bin/bash: my_func: command not found