What is export for?
export
What is the difference between:
export name=value
and
name=value
Although not explicitly mentioned in the discussion, it is NOT necessary to use export when spawning a subshell from inside bash since all the variables are copied into the child process.