The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 01-01-2009
bobban bobban is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 5
Quote:
2-Dont forget to EXPORT your path! About once a week I work an extra 15min on a problem because I forgot to EXPORT the varaiable.
What does EXPORT do?

I have a script: newpath.sh

and in that is the line:

PATH="/cygdrive/d/dev/Builds/BuildOutputDir:.:"

and I run it using the source command:

. newpath.sh

and after that, when I enter "printf $PATH" I can see it has updated. Am I missing something?