delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/25/22:59:45

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
Message-ID: <3FEBB20E.78216370@dessent.net>
Date: Thu, 25 Dec 2003 19:59:10 -0800
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: Cygwin mailing list <cygwin AT cygwin DOT com>
CC: anjali1 AT umbc DOT edu
Subject: Re: Problem using export command
References: <3696 DOT 68 DOT 55 DOT 203 DOT 3 DOT 1072381783 DOT squirrel AT webmail DOT umbc DOT edu> <3FEB4237 DOT BA1E9533 AT dessent DOT net> <4107 DOT 68 DOT 55 DOT 203 DOT 3 DOT 1072399290 DOT squirrel AT webmail DOT umbc DOT edu>
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - host.linuxsv3.net
X-AntiAbuse: Original Domain - cygwin.com
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
X-AntiAbuse: Sender Address Domain - dessent.net
X-IsSubscribed: yes

Anjali Bharat Shah wrote:
> 
> Hi Brian,

Please keep replies to the list and not to me directly.

> 1)Your CLASSPATH contains a directory with a space in it, probably
> > \Program Files.  You'll need to quote it so that the shell sees it all
> > as one word.
>   Can you please show how to use quotes for such directories? as in where to
> place the quotes? Also does the export command have to be outside the script
> at the prompt or does it work from inside the script as well?

export CLASSPATH="$CLASSPATH:$CP:$REI_HOME/classes:."

The export will set the variable in the environment of that script and
any processes launched from it.  It cannot change the value of variables
in the environment above it.  To get around this you typically use the
'source' command which runs a script in the context of the current shell
rather than spawning a subshell.

> > 2) Also, I don't think LD_LIBRARY_PATH has any effect under Cygwin.
> > There's no such feature.
> > Can you please suggest the equivalent variable same?

Under Windows, the system searches the PATH for shared libraries
(.DLLs).  I think it also searches the directory of the executable
first, and then tries the PATH.  (It might be the other way around, I
don't know.)

Brian

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019