#run the following FOO=foo export BAR=bar echo $FOO echo $BAR # now run a new shell: bash echo $FOO echo $BAR