In bash and other shells, I can make same variables have "line scope" by defining it just before a command.
CXX=clang++ ./script.bash
Which I prefer over
export CXX=clang++
./script.bash
because the former doesn't contaminate the environment.
How can I do the same with variables set by source
and achieve the same "line scope" effect?
The equivalent of:
source env.source # defines a bunch of vars
./script.bash
??? ./script.bash