PROGRAM_NAME is not available in the modules included via -r command line option
--------------------------------------------------------------------------------
Key: JRUBY-2693
URL: http://jira.codehaus.org/browse/JRUBY-2693
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.2, JRuby 1.1.1, JRuby 1.1
Reporter: Alex Panchenko
Assignee: Thomas E Enebo
It works with ruby and worked in jruby 1.0.x, but it does not work in jruby
1.1.x
Eclipse DLTK ruby debugger uses this variable and this issue prevent it from
working with JRuby 1.1.x
Please see the example:
{code:title=programName.rb}
puts 'PROGRAM_NAME=' + $PROGRAM_NAME.to_s
{code}
And output in different versions:
C:\>ruby -r programName.rb programName.rb
PROGRAM_NAME=programName.rb
PROGRAM_NAME=programName.rb
C:\>C:\jruby-1.0.3\bin\jruby.bat -r programName.rb programName.rb
PROGRAM_NAME=programName.rb
PROGRAM_NAME=programName.rb
C:\>C:\jruby-1.1.2\bin\jruby.bat -r programName.rb programName.rb
PROGRAM_NAME=
PROGRAM_NAME=programName.rb
--
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