delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/22/11:02:58

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 22 Apr 2003 11:02:32 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: tek1 <tek1 AT pobox DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: beginner question: using 'set VAR=...'
In-Reply-To: <4.3.2-J.20030422105050.033b4d70@smtp.comcast.net>
Message-ID: <Pine.GSO.4.44.0304221101050.19398-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Tue, 22 Apr 2003, tek1 wrote:

> Using Cygwin, I'm trying to run some .bat scripts that contain 'set
> VAR=....' statements.  However, after the script is run, those variables
> defined by the 'set' statement are not recognized (as environment
> variables).  These are variables that are to exist temporarily (i.e. during
> the session or time that the Cygwin window is open), so I do not want to
> put them in CYGHOME/cygwin.bat.
>
> Any advice?
> Thank you.

FYI, .bat files aren't run by Cygwin.  Running a .bat file invokes the
Windows command processor, which interprets the .bat file.

Any particular reason you're not using shell scripts?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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