How to squelch the Cygwin DOS path warning
my-cygwin-pc> cd c:/<TAB>cygwin warning: MS-DOS style path detected: c:/ Preferred POSIX equivalent is: /cygdrive/c 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
At least this only happens the first time during the session, but I still wanted it gone.
So I tried to turn it off, but the instructions were a little ambiguous to me. I tried setting a nodosfilewarning environment variable in my .cshrc. I actually tried it several different ways:
setenv NODOSFILEWARNING 1 setenv nodosfilewarning 1 set nodosfilewarning=1
Turns out none of these are right. You need to set a Windows environment variable named CYGWIN: