delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/08/10/00:01:43

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=OCLkeOW6UAt/XA3JBB8U0lB910+2Lif0Vi8Ry6gmIFLZY2ao6HLDU
k7IzK++7ejePe9JWzR82P3vS8Ca/VgB0X4+tbzO+f1b9l24Et/DUjWLLtn+udmUI
t2tlPJ0Rj5bOdmI6U1uK//0VtUtyMPTJvpZ66zsFo4EVSNKADNnQVU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=atASUdlqFSyw3oQ/CkYcBcgoPIk=; b=st15uh2YKP9BVJrJciRH4JXaZQcP
3lHsEBuFn6nFckwWcBfVd5SSLE0zCXBAz2Iodpc41wNSOPEUXB5vm7Etk3cwTYpQ
Wkr1Oymgk2WY10BFgeR7bcY+bKAxkkOCTw1LTyQ63XQKlpBUfbcMnbVlj32H63oa
1p3IPciztGJRQUk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RDNS_NONE autolearn=no version=3.3.1
X-Mail-Handler: Dyn Standard SMTP by Dyn
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1+WeYXs5hXOZgqTuhjtot9L
Date: Sat, 10 Aug 2013 00:01:15 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Source a .bat file from bash
Message-ID: <20130810040115.GA2378@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <DUB123-W29CB87179CAE6145C437BBB1580 AT phx DOT gbl>
MIME-Version: 1.0
In-Reply-To: <DUB123-W29CB87179CAE6145C437BBB1580@phx.gbl>
User-Agent: Mutt/1.5.20 (2009-06-14)

On Fri, Aug 09, 2013 at 08:42:38PM +0000, Saurabh T wrote:
>Is there a way to source a .bat file from bash and have the paths and other environment variables set in it apply in cygwin?

Nope.  Sorry.

You could, remembering that Cygwin is supposed to be a Linux/UNIX
experience for Windows, use the UNIX-standard way of doing:

. shell-file

Where shell-file contained

export FOO=bar

That would work.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019