For some reasons, Im using ksh and zsh in my scripts and returning to -bash, I need to use already set variable values in the spawned shells, writing it to some temp file and using that didn't look like the way to go. Any other way?
Is there a valid way of exporting a variable across different shells?
bash;zsh;ksh;variable
If your variable is exported (bash: by the export command or by default because of set -a) then a called shell gets it in its environment like any other process would.