delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/08/19:20:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Mime-Version: 1.0 (Apple Message framework v619.2)
In-Reply-To: <Pine.GSO.4.61.0502081805570.27816@slinky.cs.nyu.edu>
References: <c97b679ac4abf5b562e0134cf11df760 AT columbia DOT edu> <Pine DOT GSO DOT 4 DOT 61 DOT 0502081805570 DOT 27816 AT slinky DOT cs DOT nyu DOT edu>
Message-Id: <9f8fef53fdb064157d783b7d99fc615d@columbia.edu>
From: Matthew Bogosian <mattb AT columbia DOT edu>
Subject: Re: Setting the Windows Path variable for children of a bash script....
Date: Tue, 8 Feb 2005 16:20:01 -0800
To: cygwin AT cygwin DOT com
X-Pgp-Agent: GPGMail 1.0.2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Okay, I could have *sworn* I tried that before and it didn't work, but 
I tried it again, and it seems to be exactly what I wanted/hoped for. 
Ugh...sorry for the unnecessary traffic and thanks for the quick 
response!

	-- Matt


On Feb 8, 2005, at 15:07, Igor Pechtchanski wrote:

> On Tue, 8 Feb 2005, Matthew Bogosian wrote:
>
>> ...
>>
>> I'm trying to execute a cygwin-ignorant Windows binary from a bash 
>> script.
>> However, the DLLs required to load this binary are not in the system- 
>> or
>> user-wide Windows Path variable (nor do I want them to be). I'm 
>> trying to
>> modify the environment before execution of this binary, but it 
>> doesn't seem to
>> work. Here's what I've got:
>>
>> # ...
>> Path="$(cygpath -pw "${PATH}");$(cygpath -pw "${LD_LIBRARY_PATH}")"
>> export Path
>> exec /cygdrive/c/path/to/windows/binary.exe
>>
>> LD_LIBRARY_PATH contains the paths in which the DLLs specific to 
>> binary.exe
>> reside. Unfortunately, binary.exe doesn't seem to be able to find 
>> them there
>> when being invoked from the script's exec command.
>>
>> ...
>
> PATH="${PATH}:${LD_LIBRARY_PATH}"
> export PATH
> exec /cygdrive/c/path/to/windows/binary.exe
>
> The "PATH" variable is treated specially by Cygwin and is translated 
> from
> POSIX path format to Windows path format when calling Windows programs.
> In your first case it was doing the translation twice, so C:\WINDOWS
> became C;C:\WINDOWS.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCCVc7nLpDzL5I7l8RAifPAJ9XGh1lXCI/4rnWZ5WV21hojnYeKwCeJbGc
UFID820EZT1+ZKk5SRGrzbo=
=N/u5
-----END PGP SIGNATURE-----


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