[Mono-bugs] [Bug 54677][Nor] Changed - Error code using the bat files on Windows

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jun 20 17:41:31 EDT 2005


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 wsf at fultondesigns.co.uk.

http://bugzilla.ximian.com/show_bug.cgi?id=54677

--- shadow/54677	2005-06-20 16:57:17.000000000 -0400
+++ shadow/54677.tmp.19739	2005-06-20 17:41:31.000000000 -0400
@@ -1,12 +1,12 @@
 Bug#: 54677
 Product: Mono: Runtime
 Version: unspecified
 OS: unknown
 OS Details: Windows XP
-Status: NEEDINFO   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: packaging
 AssignedTo: duncan at ximian.com                            
 ReportedBy: wsf at fultondesigns.co.uk               
@@ -86,6 +86,27 @@
 
 What are you looking for? The correct exit code?  Please porvide more
 info.
 
 All of my testing was done on Windows XP under the cmd.exe shell and
 under Windows XP while using Cygwin.
+
+------- Additional Comments From wsf at fultondesigns.co.uk  2005-06-20 17:41 -------
+Most of these questions are answered in the original report, but to clear:
+
+I was using Cygwin (bash shell).
+An "exit" statement needs adding into mcs.bat, mono.bat and all the
+other .bat files. They all exhibit the same design pattern and suffer
+the same design flaw.
+
+I am looking for the .bat files to provide the correct exit code. The
+test code given shows they are not providing the correct exit code
+under error conditions.
+
+You can check the exit code by using code such as:
+
+mcs.bat emptyfile.cs -o runme.exe && echo "this should not appear"
+
+"this should not appear" will be incorrectly displayed as mcs.bat
+should return with a bad exit code, thefore the echo should not run.
+Try the same with the .sh scripts - they work as one would expect.
+


More information about the mono-bugs mailing list