RUBYOPT processing needs major changes
--------------------------------------

                 Key: JRUBY-5000
                 URL: http://jira.codehaus.org/browse/JRUBY-5000
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.1
            Reporter: Hiro Asari
            Priority: Minor


In MRI, certain values in RUBYOPT are illegal, and if set, it will result in 
RuntimeError.

{noformat}
$ RUBYOPT='-c' ruby -ve 'p 0'
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
ruby: illegal switch in RUBYOPT: -c (RuntimeError)
$ RUBYOPT='-c' jruby -ve 'p 0'
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-08-07 da2ebb7) (Java 
HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java]
Syntax OK for -e
{noformat}

{noformat}
$ RUBYOPT='copyright' ruby -ve 'p 0'
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
ruby: illegal switch in RUBYOPT: -c (RuntimeError)
$ RUBYOPT='copyright' jruby -ve 'p 0'
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-08-07 da2ebb7) (Java 
HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java]
0
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to