'--version' flag should prevent interpreter from running (even in the presence
of '-e' or a script file name)
-------------------------------------------------------------------------------------------------------------
Key: JRUBY-4931
URL: http://jira.codehaus.org/browse/JRUBY-4931
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.5.1, JRuby 1.6
Environment: github trunk
Reporter: Hiro Asari
Assignee: Hiro Asari
Priority: Critical
Fix For: JRuby 1.6
{noformat}
$ jruby --version -e 'class p; end'
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-07-11 5cda549) (Java
HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java]
:1: -e:1: class/module name must be CONSTANTclass p; end (SyntaxError)
^
$ ruby --version -e 'class p; end'
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.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