Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 22 Apr 2003 11:12:23 -0400 From: tek1 Subject: Re: beginner question: using 'set VAR=...' In-reply-to: X-Sender: (Unverified) To: cygwin AT cygwin DOT com Message-id: <4.3.2-J.20030422111122.033d1760@smtp.comcast.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <4 DOT 3 DOT 2-J DOT 20030422105050 DOT 033b4d70 AT smtp DOT comcast DOT net> Thank you for your reply. I have also tried the shell scripts, but the variables are not available/exposed after the script has executed... At 11:02 03/04/22 -0400, you wrote: >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 -- 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/