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

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
Date: Tue, 22 Apr 2003 11:47:03 -0400
From: tek1 <tek1 AT pobox DOT com>
Subject: RE: beginner question: using 'set VAR=...'
In-reply-to: <3500515B75D9D311948800508BA37955014BDA47@EX-LONDON>
X-Sender: (Unverified)
To: cygwin AT cygwin DOT com
Message-id: <4.3.2-J.20030422114455.033ca448@smtp.comcast.net>
MIME-version: 1.0

Because I only want them on occasion.  I would like to be able to execute 
the script (.bat or .sh) and have the environment variables defined in the 
script available during that particular session...

Thanks for your reply.


At 16:22 03/04/22 +0100, you wrote:
>if you only want them available within cygwin (not windows generally), then
>why not just set them in your /etc/profile (or ~/.profile .
>
> > -----Original Message-----
> > From: tek1 [mailto:tek1 AT pobox DOT com]
> > Sent: 22 April 2003 16:12
> > To: cygwin AT cygwin DOT com
> > Subject: Re: beginner question: using 'set VAR=...'
> >
> >
> > 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/
> >
>
>--
>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/


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