Re: what does export do?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux