Saturday, January 31, 2009

Cygwin.bat on Vista-64bit

After installing Cygwin on Vista-64bit, I found that bash shell would start but no unix commands like 'ls' were available. Now, I had fixed this problem on my laptop, a while back... not sure about all the details. But, here's the Cygwin.bat script that starts things up...


@echo off

@REM Cygwin Startup script for Vista-64bit

C:
chdir C:\cygwin\bin

set CYGPATH=C:\cygwin\bin;C:\cygwin\sbin;C:\cygwin\usr\X11R6\bin;
set PATH=%CYGPATH%;%PATH%
set DISPLAY=:0.0

REM echo %PATH%

bash --login -i


Cygwin still seems to have problems with forking new processes on Vista, but all I really need it for now is for some perl scripting...

-Yeah...

1 comment:

Unknown said...

Cygwin emulates linux on Windows.

Both Windows and linux use "PATH" not "CYGPATH".