I have a shell script that sets some environment variables that I run through the
source command to affect the current shell. I created another shell script that refers to this shell script and I thought calling
source inside this other shell script would have the same effect as calling directly on the current shell, but apparently that's not the case. Is there anyway to tell this invoker script that whatever applies to the shell it's running in should be reflected to the current shell?
The script with the environment variables begin with
set -a so I thought doing something like
would export everything to the invoking shell, but this too doesn't seem to work.