Source a .bat file from bash

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Sat Aug 10 04:01:00 GMT 2013


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



More information about the Cygwin mailing list