Using ‘.’ to execute files in bash
I was trying to figure out how to export my environmental via script instead of changing my .bashrc file.
I found this old useful post that said:
Variables can only be exported to subordinate processes, you can't pass them back up to the parent. If you really want your script to affect the parent shell's environment, run the script as
I just want to know what the difference is between
. ./script and
When I look at it, they booth mean to me, run the script from the current directory?