Cygwin パス

$ cd 'c:\Program Files'
$ ls c:\\windows

とできる。'\' をエスケープと解釈するのはシェルだけであり、中の APIWindows のパスを解釈できるらしい。


Cygwin では /etc/hosts が
hosts -> C:\WINDOWS\system32\drivers\etc\hosts
Windows のパスでシンボリックリンクになっているため、Vim7 で /etc/hosts を編集しようとするとエラーが出る。/cygdrive/c/windows/system32/drivers/etc/hosts にリンクを張りなおせば OK のはず。