Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bashrc variables

Status
Not open for further replies.

ovince

Programmer
Feb 27, 2007
55
FR
Hi All,

I can not find any documentation on what is the difference when I define some variable in .bashrc file like for example:

COS_PATH=+$COSSPEC2D_DIR/pro:$COS_PATH

and

COS_PATH=$COSSPEC2D_DIR/pro:$COS_PATH

(ie without +). Could somebody tell me?

Also I am not sure when to export variables. Should I export it at the end of .bashrc file or whenever the variable is changed? Or perhaps once to export wherever in the file and not to warry about changes in later?


thank you
oliver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top