This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

setting environment variables from a bash script


Is it possible to set an environment variable using a bash script and for that variable to be able to be seen within bash once the script is finnished.

I want to be able to set the path using a script so I can say :-

./gcc-3.4.3

calling a script simular to this :-

       ~~~~ gcc-3.4.3 ~~~~
       #! /bin/sh
       set PATH=/usr/gcc-3.4.3/bin:${PATH}
       ~~~~~~~~~~~~~~~~

which will then set the path from then on.

Hope you can help,

Aaron



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]