I wonder if there is a need to use “export” when setting a variable in .bashrc.
In my tests editing .bashrc there was no difference between
foo=bar
and
export foo=bar
In both cases, after login “echo $foo” outputs “bar”.
I am using Debian Squeeze, if that matters.
Thank you guys in advance.
Try creating a shell script that accesses the
foovariable.If
foowasexport‘ed, it will be visible in the shell script, otherwise it won’t.