How to set a global environment variable in a bash script?
If I do stuff like
Run your script with
This will run the script in the current shell environment.
export governs which variables will be available to new processes, so if you say
FOO=1 export BAR=2 ./runScript.sh
$BAR will be available in the environment of
$FOO will not.