Support for 'source'
hengruo opened this issue · comments
Hengruo Z. commented
A feature like "source xxx.sh" is needed.
I tried "sh.bash("-c", "source xxx.sh")" but the environment variables in xxx.sh weren't imported into the current environment.
Andrew commented
I feel strongly that this is outside of the scope of sh. To be more specific, the goal of sh is to make calling commands like calling functions. What you have described is making python more like bash.