I finally upgraded to a Windows 8 machine and noticed that the Cygwin command prompt gave me issues with DOS style path names. This is very easily fixable by using an environment variable called CYGWIN.
However, I already had the environment variable named CYGWIN set, but it still didn't work. Turns out I was using the incorrect case. CYGWIN MUST BE UPPERCASE. Hopefully this quick post can solve your headache too.
Issue:
Every time you use a DOS style path (backwards slash) you get an error like this
cygwin warning:
MS-DOS style path detected: C:\Intel
Preferred POSIX equivalent is: /cygdrive/c/Intel
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Fix:
In a DOS command prompt (cmd) type
set cygwin
I got the response
cygwin=nodosfilewarning
This is wrong. Not sure why the cygwin word is lowercase. Should be UPPERCASE CYGWIN. To fix, press WINDOWS keys, type "environment" to open the system environment variables window. Under system variables, create a new one called CYGWIN and set to nodosfilewarning. And delete the older "cygwin" (lowercase) one.
Next time you open a DOS prompt and type "set cygwin" you should see
CYGWIN=nodosfilewarning
Now all the DOS errors should go away.
Nifty,
Thomas
Saturday, February 22, 2014
Subscribe to:
Post Comments (Atom)
1 comment:
THANK YOU VERY MUCH!
didn't realize that all this time this is because of the lower cased cygwin
Post a Comment