I run bash scripts from tcsh shells. I want to set an environment variable in the tcsh shell from a bash script.
The method of doing this, if your parent shell is bash is to source a file,
i.e., if I have a file called dog
that contains
#!/bin/bash
myEnv=foo
export $myEnv
then from a bash shell, the command
. dog
will as expected create an envi source dog
then nothing happens. Is there a way to accomplish what I want to do?
thanks!