Bash fails to run .bat file with spaces in pathname and argument

Enrico Forestieri forenr@tlc.unipr.it
Sat Oct 14 02:12:00 GMT 2006


Sean Daley writes:

> Read further down that thread and you'll also see that people discovered some
> additional horrifying things about windows cmd.
> 
> http://sourceware.org/ml/cygwin/2004-09/msg00277.html

Referring to that old post, the following works:

C:\>cmd /c ""C:\Documents and Settings\test.bat" "Hello, world.""
"Hello, world."

Yes, quoting is quite weird with cmd.exe.

-- 
Enrico


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list