Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2004-06-24 15:57:36 +0400
committerAtsushi Eno <atsushieno@gmail.com>2004-06-24 15:57:36 +0400
commitd4cbaa798fdee26712f0d9e27ca620c84cdbd015 (patch)
tree6e87dae788f25c7b894f10b25396bd8575c0a2fe /mcs/class/System/System.Diagnostics
parentedb0c6019ce505516ac894d32b15102d7cfe309c (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/ChangeLog5
-rwxr-xr-xmcs/class/System/System.Diagnostics/Process.cs6
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,