jruby command does not work with -p option
------------------------------------------
Key: JRUBY-1207
URL: http://jira.codehaus.org/browse/JRUBY-1207
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.0.0
Environment: Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_07-164) on Mac OS X
Reporter: TAKAI Naoto
Assignee: Thomas E Enebo
Running jruby command with -p option causes NPE.
{quote}
% echo 'It does not works' | jruby -p -e ''
Exception in thread "main" java.lang.NullPointerException
at org.jruby.parser.ParserSupport.appendToBlock(ParserSupport.java:334)
at
org.jruby.parser.ParserSupport.appendPrintToBlock(ParserSupport.java:159)
at org.jruby.Main.getParsedScript(Main.java:240)
at org.jruby.Main.runInterpreter(Main.java:222)
at org.jruby.Main.runInterpreter(Main.java:173)
at org.jruby.Main.run(Main.java:120)
at org.jruby.Main.main(Main.java:95)
{quote}
--
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