1.7.1: Problem with cygstart and arguments containing spaces

Ilya Beylin beylin.i@gmail.com
Thu Mar 4 21:26:00 GMT 2010


Hello,

Cyrille Lefevre wrote:
> cygstart --wait /system32/cmd /c "echo 1 2&pause"

I do not think it is a convincing example. cmd.exe treats everything
that follows / c as a single command, so yuo would get the same result
even without quotes.

    cygstart --wait $WINDIR/system32/cmd /c echo 1 2  \& pause

The problem is probably that windows passes arguments as a
concatenated string,  to be parsed by the application. Try to pass the
whole command line to your program, it may work better:

    cygstart /cygdrive/d/Software/Console2/Console.exe  '-d "C:/Program Files" '

Regards,
Ilya

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



More information about the Cygwin mailing list