This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Bash script and export CLASSPATH
- From: "Richardson, Tony" <ar63 at evansville dot edu>
- To: "Brian Rowe" <schwaa98 at yahoo dot com>,<cygwin at cygwin dot com>
- Date: Wed, 2 Oct 2002 14:21:00 -0500
- Subject: RE: Bash script and export CLASSPATH
> From: Brian Rowe [mailto:schwaa98@yahoo.com]
> 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 ideas on why this wouldn't work?
You can't change the environment of a parent from within
a child process. Either "source" the script ("source script")
or move the definition to your .bashrc file.
Tony Richardson
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/