
$ cat foo echo $FOO $ FOO=1 . ./foo $ echo $FOO Did not echo 1 at all. Now variable assignments before sourced scripts are honored during and after the execution of the script.
$ cat foo echo $FOO $ FOO=1 . ./foo $ echo $FOO Did not echo 1 at all. Now variable assignments before sourced scripts are honored during and after the execution of the script.