I would like to know if using alias in terminal to change the default python version has positive effects on subsequent calls of python in scripts?
For example, I use
$ alias python=python36
$ ./run_program
Now assume run_program is a script that call multiple nested scripts and inside them, the command is python foo.py. Will they execute python36 or python2?
Or that alias affects only direct python commands in current shell?