Re: Source a .bat file from bash

2013-08-12 Thread Earnie Boyd
On Mon, Aug 12, 2013 at 10:33 AM, Earnie Boyd wrote: > On Mon, Aug 12, 2013 at 4:18 AM, Csaba Raduly wrote: Sorry, for feeding spammers. -- Earnie -- https://sites.google.com/site/earnieboyd -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/

Re: Source a .bat file from bash

2013-08-12 Thread Earnie Boyd
On Mon, Aug 12, 2013 at 4:18 AM, Csaba Raduly wrote: > Hi Saurabh, > > On Fri, Aug 9, 2013 at 10:42 PM, 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? >> > > No

Re: Source a .bat file from bash

2013-08-12 Thread Csaba Raduly
Hi Saurabh, On Fri, Aug 9, 2013 at 10:42 PM, 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? > Note that "to source" in UNIX shell parlance means "read the file and inte

Re: Source a .bat file from bash

2013-08-09 Thread Christopher Faylor
On Fri, Aug 09, 2013 at 08:42:38PM +, 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 Window

Source a .bat file from bash

2013-08-09 Thread Saurabh T
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? For example $ echo $PATH /usr/local/bin:/usr/bin $ cat file.bat set path=%path%;C:\windows\something set x=somevar $ some_command file.bat $ echo $PATH /usr/local/bin