This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Source a .bat file from bash
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 10 Aug 2013 00:01:15 -0400
- Subject: Re: Source a .bat file from bash
- References: <DUB123-W29CB87179CAE6145C437BBB1580 at phx dot gbl>
- Reply-to: cygwin at cygwin dot com
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