This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Source a .bat file from bash


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]