[Mono-bugs] [Bug 55790][Maj] New - Can't pass arguments to a new process (Process.StartInfo.Arguments)
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 18 Mar 2004 23:28:05 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by umbrook0@cs.umanitoba.ca.
http://bugzilla.ximian.com/show_bug.cgi?id=55790
--- shadow/55790 2004-03-18 23:28:05.000000000 -0500
+++ shadow/55790.tmp.2419 2004-03-18 23:28:05.000000000 -0500
@@ -0,0 +1,63 @@
+Bug#: 55790
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: umbrook0@cs.umanitoba.ca
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Can't pass arguments to a new process (Process.StartInfo.Arguments)
+
+Description of Problem:
+The arguments to a process are ignored when running the process.
+
+Steps to reproduce the problem:
+1. Compile code below.
+2. Run code on a Linux machine.
+
+Code:
+----
+using System;
+using System.Diagnostics;
+
+public class Test
+{
+ public static void Main()
+ {
+ Process p = new Process();
+
+ p.StartInfo.FileName = "/bin/echo";
+ p.StartInfo.Arguments = "Hello, world.";
+ p.Start();
+ p.WaitForExit();
+ }
+}
+----
+
+Actual Results:
+A blank line is printed.
+
+Expected Results:
+Should see "Hello, world.".
+
+How often does this happen?
+Always.
+
+Additional Information:
+This code works with mono 0.30.2 and does not work with mono 0.31 (using
+mono or mint).
+
+If you substitute something like /usr/bin/man for /bin/echo, you can see
+that the program is executed, but with no arguments (i.e. it will print an
+error message "What manual page do you want?").
+
+There's nothing particular about "Hello, world.": using "Hello" with no
+space and no comma causes the same problem.