gnu 並列で使用できるように、zsh から関数をエクスポートするにはどうすればよいですか?
例:
function my_func(){ echo $1;}
export -f my_func
parallel "my_func {}" ::: 1 2
bashで出力されます
1
2
一方、zshではエラーメッセージが出力されます
/bin/bash: my_func: command not found
/bin/bash: my_func: command not found