delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/07/16:08:10

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.0.1.1.0.20040407160035.039f1f68@127.0.0.1>
X-Sender:
Date: Wed, 07 Apr 2004 16:04:16 -0400
To: sly5+gmane AT pitt DOT edu, cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: Environment variables for DOS programs
In-Reply-To: <c51j9d$6jp$1@sea.gmane.org>
References: <c51j9d$6jp$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0

At 03:03 PM 4/7/2004, you wrote:
>Hi,
>
> From my Cygwin terminal, I want to call DOS programs  which require
>some environment variables to be set properly (such as the commandline
>utility *link.exe* of Visual Studio) for current session.
>
>Unfortunately, this was not possible by simply setting the variables in
>the shell (I am using tcsh). Link.exe refuses to see the environment
>variables defined in tcsh. Is this the desired behaviour?  Is there
>anyway to make the DOS programs see the environment variables in Cygwin
>shells? Or am I making a fundamental mistake in expecting such a behaviour?


Sorry, I don't have tcsh installed but I tried this from bash:

# export FOO=bar
# cmd
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

D:\>echo %FOO%
echo %FOO%
bar

D:\>

So there's not a generic issue here.  If something like this doesn't 
work with tcsh, then the problem is there.  Otherwise, it's in 'link.exe'


HTH,


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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