Date: Tue, 12 Jul 2011 15:46:53 -0500 (CDT)<br>
From: Mike Miller <<a href="mailto:mbmiller%2Bl@gmail.com">mbmiller+l@gmail.com</a>><br>
To: TCLUG Mailing List <<a href="mailto:tclug-list@mn-linux.org">tclug-list@mn-linux.org</a>><br>
Subject: Re: [tclug-list] Problem after ssh'ing to Windows 7<br>
Message-ID: <<a href="mailto:alpine.DEB.2.00.1107121537490.4004@taxa.psych.umn.edu">alpine.DEB.2.00.1107121537490.4004@taxa.psych.umn.edu</a>><br>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed<br>
<br>
On Tue, 12 Jul 2011, Brian Wood wrote:<br>
<br>Mike Miller:<br>
<br>
> I think I understand the problem. When you run a batch file in Windows, I<br>
> guess it can change environment strings. That is not how it works in a<br>
> bash shell in Linux/UNIX or Cygwin. With bash, a shell script creates a<br>
> new shell with its own environment and changes to environment strings<br>
> occur only there. When that shell terminates, so do the changes. To make<br>
> changes in your shell, you have to either type them on the command line or<br>> source a file, not execute a shell script. If it's a setting you will<br>
> always want, you should change the path in ~/.bash_profile (you have to<br>
> use the bash syntax, not Windows syntax). If you only want the path<br>
> sometimes, write the path line in a file and then source the file. For<br>
> example:<br>
> <br>
> cat path_file<br>> PATH=/cygdrive/c:/cygdrive/c/<div id=":14w">> progs:/cygdrive/d/more-progs<br>
><br>
> source path_file<br>
<br>Good stuff.<br><br>I read a few threads about this and came up with this. <br><br>cmd /K "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat"<br>c:\cygwin\Cygwin.bat<br><br>A little convoluted, but with that I inherit the needed settings and<br>
everything compiles. <br><br>
</div><br clear="all">-- <br>Brian Wood<br>Ebenezer Enterprises<br><a href="http://webEbenezer.net" target="_blank">http://webEbenezer.net</a><br><br><br><br><br><br>