| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| content-class: | urn:content-classes:message |
| MIME-Version: | 1.0 |
| X-MimeOLE: | Produced By Microsoft Exchange V6.0.6249.0 |
| Subject: | RE: Bash script and export CLASSPATH |
| Date: | Wed, 2 Oct 2002 14:21:00 -0500 |
| Message-ID: | <FBAA835302BB614E9D5B54EBEA335DCB6F9A4C@uemail02.evansville.edu> |
| X-MS-Has-Attach: | |
| X-MS-TNEF-Correlator: | |
| From: | "Richardson, Tony" <ar63 AT evansville DOT edu> |
| To: | "Brian Rowe" <schwaa98 AT yahoo DOT com>, <cygwin AT cygwin DOT com> |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id g92JM4v14938 |
> From: Brian Rowe [mailto:schwaa98 AT yahoo DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |