what does export do?

Paul Howarth paul at city-fan.org
Mon May 23 15:40:58 UTC 2005


linux user wrote:
> Ok.  So to be safe, it's a good idea to export the environment variable if it's defined in the .bashrc file.
> 
> new .bashrc example
> 
> SCREWED_UP=$SCREWED_UP:yep
> export SCREWED_UP

Or, more concisely but less portably (some older shells on Solaris for 
example don't support this syntax):

export SCREWED_UP=$SCREWED_UP:yep

Paul.




More information about the fedora-list mailing list