diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2004-06-24 15:57:36 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2004-06-24 15:57:36 +0400 |
commit | d4cbaa798fdee26712f0d9e27ca620c84cdbd015 (patch) | |
tree | 6e87dae788f25c7b894f10b25396bd8575c0a2fe /mcs/class/System/System.Diagnostics | |
parent | edb0c6019ce505516ac894d32b15102d7cfe309c (diff) |
2004-06-24 Atsushi Enomoto <atsushi@ximian.com>
* Process.cs : quick fix for UseShellExecute=false on windows. See
the code comment.
svn path=/trunk/mcs/; revision=30290
Diffstat (limited to 'mcs/class/System/System.Diagnostics')
-rw-r--r-- | mcs/class/System/System.Diagnostics/ChangeLog | 5 | ||||
-rwxr-xr-x | mcs/class/System/System.Diagnostics/Process.cs | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/mcs/class/System/System.Diagnostics/ChangeLog b/mcs/class/System/System.Diagnostics/ChangeLog index a138f2c77e8..392c500d5fc 100644 --- a/mcs/class/System/System.Diagnostics/ChangeLog +++ b/mcs/class/System/System.Diagnostics/ChangeLog @@ -1,3 +1,8 @@ +2004-06-24 Atsushi Enomoto <atsushi@ximian.com> + + * Process.cs : quick fix for UseShellExecute=false on windows. See + the code comment. + 2004-06-17 Lluis Sanchez Gual <lluis@ximian.com> * Process.cs: Added missing check in HasExited property. diff --git a/mcs/class/System/System.Diagnostics/Process.cs b/mcs/class/System/System.Diagnostics/Process.cs index 38a428907d6..66e22f14b75 100755 --- a/mcs/class/System/System.Diagnostics/Process.cs +++ b/mcs/class/System/System.Diagnostics/Process.cs @@ -770,7 +770,11 @@ namespace System.Diagnostics { cmdline = startInfo.FileName + " " + startInfo.Arguments.Trim (); } else { appname = startInfo.FileName; - cmdline = startInfo.Arguments.Trim (); + // FIXME: There seems something wrong in process.c. We should not require extraneous command line + if (Path.DirectorySeparatorChar == '\\') + cmdline = appname + " " + startInfo.Arguments.Trim (); + else + cmdline = startInfo.Arguments.Trim (); } ret=Start_internal(appname, |