Bug 315968 (MONO65484) - [PATCH] Mono.GetOptions does not support quoted arguments in response file
Summary: [PATCH] Mono.GetOptions does not support quoted arguments in response file
Status: RESOLVED FIXED
Alias: MONO65484
Product: Mono: Compilers
Classification: Mono
Component: Basic (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Rafael Teixeira
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-08 00:27 UTC by Gert Driesen
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Fix (2.17 KB, patch)
2005-05-15 09:32 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:52:58 UTC


---- Reported by gert.driesen@pandora.be 2004-09-07 17:27:43 MST ----

mbas does not supported quoted arguments in response files.

To reproduce this issue :

1. create a source file named "test.vb" containing the following code 
fragment :

Public Class Test
  Public Shared Sub Main()
  End Sub
End Class

2. create a response file named "response" containing the following :

"/target:exe"
"/r:System.dll"
"test.vb"

3. compile the source file using the response file :

$ mbas @response

I get the following errors when using mbas :

--------
MonoBASIC: THIS IS STILL ALPHA AND UNSUPPORTED SOFTWARE, USE AT YOUR OWN 
RISK.
--------
error BC2001: Source file '"/r:System.dll"' could not be found!!!
error BC2001: Source file '"/target:exe"' could not be found!!!
error BC2001: Source file '"test.vb"' could not be found!!!
Compilation failed: 3 Error(s), 0 warnings

This works fine using vbc, but also when I specify these arguments to 
mbas on the command line (instead of using a response file).



---- Additional Comments From rafaelteixeirabr@hotmail.com 2004-09-08 12:02:35 MST ----

The problem is really within Mono.GetOptions. I'll look at that.



---- Additional Comments From gert.driesen@pandora.be 2005-05-15 02:31:45 MST ----

I attached a patch (shamelessly copied from mcs) which fixed this 
issue.



---- Additional Comments From gert.driesen@pandora.be 2005-05-15 02:32:18 MST ----

Created an attachment (id=166744)
Fix




---- Additional Comments From gert.driesen@pandora.be 2005-06-04 09:04:02 MST ----

Is it ok to commit this (trivial) patch ?



---- Additional Comments From rafaelteixeirabr@hotmail.com 2005-06-04 19:21:34 MST ----

Please do it for me, thanks



---- Additional Comments From gert.driesen@pandora.be 2005-06-05 06:02:22 MST ----

Committed in svn (revision 45433).

Imported an attachment (id=166744)

Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Gentoo 2.6.8 R2</cf_op_sys_details>