RE: Bash script and export CLASSPATH

2002-10-02 Thread Richardson, Tony
> From: Brian Rowe [mailto:[EMAIL PROTECTED]] > Hello, > If I export CLASSPATH=blah on the command line it > works fine. If I write a shell program that sets the > CLASSPATH it won't set it! When I echo the value its > right from the script, but when its done the CLASSPATH > is not set. Any id

Re: Bash script and export CLASSPATH

2002-10-02 Thread Randall R Schulz
Brian, No, it's not odd. It's correct. This is a generic thing about how environment variables work and is in no way specific to the CLASSPATH variable (or any other PATH or pre-defined or built-in variable) nor is this specific or peculiar to Cygwin. When you execute a shell script such as t

Re: Bash script and export CLASSPATH

2002-10-02 Thread Joey Bernard
This is the way shells usually work. When you execute a shell script, it gets executed as a new process. Unfortunately, child processes cannot affect the environment of the calling parent. This means that the process executing the shell script cannot influence the environment of the process giv