[Mono-devel-list] Arguments with spaces when startingexternalprogram through System.Diagnostics.Process

Jonathan Gilbert 2a5gjx302 at sneakemail.com
Thu May 26 18:57:36 EDT 2005

At 06:16 PM 26/05/2005 -0400, Gonzalo wrote:
>On Thu, 2005-05-26 at 17:59 -0400, Jonathan Gilbert wrote:
>> At 05:53 PM 26/05/2005 -0400, Gonzalo wrote:
>> >You just need to use something like "'argument with spaces'" (note the
>> >single quotes around the argument).
>> I doubt single quotes will work across platforms, though. It would be much
>> better form to use double-quotes, which will be recognized on Windows and
>> presumably other .NET runtimes as well.
>I doubt that people that doubt without testing are right. In fact, this
>time I'm sure they are not right ;-).

I wrote:
> You may have tried it yourself with mono on Windows, [..]

Just thought I'd add that if this is the case, then it is most likely
/bin/sh that is processing the single quotes on behalf of mono's
Process.Start(). This I have not checked or tested, though :-)

Cheers :-)
Jonathan Gilbert

More information about the Mono-devel-list mailing list