Re: Checked in: [RFA/commit/Windows] run program with space in path to exe.

Joel Brobecker
2012-10-24T15:01:59Z

> Ah. The "image name" is a mandatory argument on Windows CE, not optional.
> Are you saying that that would be an alternative fix for gdb? Or is there a
> downside? (Wondering in the sake of convergence in the code bases.)

We can provide the image name, but we still need to quote it in
the command line, because otherwise, argv is improperly computed.
For instance, instead of being:

["/path/to/space dir/exe", "arg1"]

The program would see:

["/path/to/space", "dir/exe", "arg1"]

/me wishes that CreateProcess was taking a list of arguments, rather
than a string of space-separated tokens....

--
Joel