Windows batches in Cygwin with spaces in path and arguments
问题 Consider this dummy Windows batch script: echo %1 Supposed just to echo to the terminal its first argument. Assume its path in resp. Windows, Cygwin style is: c:\test\win.bat /cygdrive/c/test/win.bat From Cygwin bash: $ c:\test\win.bat "hello world" "hello world" So quotes correctly identify a single argument. But now let us introduce spaces in path: "c:\te st\win.bat" /cygdrive/c/te\ st/win.bat Then: $ /cygdrive/c/te\ st/win.bat "hello world" Gives: "C:\te" is not recognized as an internal