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