[Mono-bugs] [Bug 501645] the parsing on command line arguments is wrong in Mono AddOn 2.4

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 7 14:47:04 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=501645

User amahabaleshwar at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=501645#c3





--- Comment #3 from Mahabaleshwar Asundi <amahabaleshwar at novell.com>  2009-05-07 12:47:04 MDT ---
We are still able to reproduce this with mono-addon 2.4, below are the exact
steps tried.  

Procedure Followed, 


[mono-addon] MahaTest:/home/amahabaleshwar/tmp #  source
/opt/novell/mono/bin/mono-addon-environment.sh
[mono-addon] MahaTest:> /home/amahabaleshwar/tmp # which gmcs
/opt/novell/mono/bin/gmcs
[mono-addon] MahaTest:> /home/amahabaleshwar/tmp # which mono
/opt/novell/mono/bin/mono
[mono-addon] MahaTest:/home/amahabaleshwar/tmp # /opt/novell/mono/bin/gmcs
mytest.cs
[mono-addon] MahaTest:/home/amahabaleshwar/tmp # mono mytest.exe
--iFolderDescription='iFolder System'  --test=nospacearg --test2='with Space
Arg' 'test3=all in single quotes'  "--test=all in double quotes"
count of argument is :14
real argument :--iFolderDescription=iFolder
real argument :System
real argument :--test=nospacearg
real argument :--test2=with
real argument :Space
real argument :Arg
real argument :test3=all
real argument :in
real argument :single
real argument :quotes
real argument :--test=all
real argument :in
real argument :double
real argument :quotes


Any argument without any space(--test=nospacearg), comes correctly. But if any
argument has spaces in it(ex.  --test2='with Space Arg'), then irrespective of
whether it is in single quotes or double quotes it fails(means argument array
sent Main method is incorrect). This worked with mono 1.2.2 perfectly fine,
only with mono 2.4 we are hitting this issue. As lot of iFolder setup commands
can contain spaces, this is  a blocker as far as iFolder is concerned(As this
bug does not allow basic installation iFolder only).

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list