Hi,

You run your script in another bash shell (see your first line of the script). The environment variables get set in that shell, and this shell is terminated when your script finishes.

In order to set it in your current shell, you need to 'source your_script' or '. your_script' (observe the single point at the beginning). Best you omit the first line for scripts which are supposed to be always sourced, so you never mistakenly run it instead of sourcing it.

Concering books: I cannot recommend you anything. I suggest go to a book store and look through the books what you like best. There are plenty of Unix introductions.

HTH,
        Remi

On Jan 20, 2004, at 9:39 AM, Edoardo Airoldi wrote:

hi all,
forgive me if my request is a little off topic. Basically I can set
environmental variables using export in the termial/bash, but if I run a
script like the simple one below where I basically call 3 export
statements, the variables are not set! That is if I then echo the
variables the system returns an empty string. Do you know what's
happening? And is there a reference manual you would suggest me to buy
for these things? Thanks
Edo


#!/bin/bash
echo
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++
echo CYGWIN setup script
echo To run this you should:
echo + have JAVA_HOME defined
echo + have ANT installed
echo
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++
echo


export
CLASSPATH="${CLASSPATH};.;${MINORTHIRD-.}/class;${MINORTHIRD-.}/ lib;${MINORTHIRD-.}/lib/minorThirdIncludes.jar"
export
CLASSPATH="${CLASSPATH};.;${MINORTHIRD-.}/lib/mixup;${MINORTHIRD-.}/ config"
export MONTYLINGUA="${MINORTHIRD-.}/lib/montylingua"




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners




---------------------------------------------------------------------
Intelligence is like a four-wheel drive vehicle: it allows you to get
stuck in much more remote places.

*********************************************************************
Remigius K. Mommsen                 e-mail: [EMAIL PROTECTED]
University of California, Irvine       URL:    http://cern.ch/mommsen
c/o SLAC                             voice:        ++1 (650) 926-3595
2575 Sand Hill Road #35                fax:        ++1 (650) 926-3882
Menlo Park, CA 94025, US              home:        ++1 (650) 233-9041
*********************************************************************



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to