$0 is set to '-' when running a compiled script -----------------------------------------------
Key: JRUBY-5254 URL: http://jira.codehaus.org/browse/JRUBY-5254 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.5.6 Environment: Mac OS X 10.6.5 with Java build 1.6.0_22-b04-307-10M3261; Windows XP SP3 with JDK 1.6.0_18 Reporter: Eric Christopherson Assignee: Thomas E Enebo Priority: Minor $0 is set to '-' when a compiled script is run. For example, this script: ### Test.rb ### puts "__FILE__: #{__FILE__}" puts "$0: #{$0}" when run by the command line `jrubyc Test.rb && java -cp .:/usr/local/jruby-complete.jar Test` shows: __FILE__: Test.rb $0: - Charles already made a fix ( https://github.com/jruby/jruby/commit/77b7b236ee18a086aa37fab2aba0d2e9fca734e4 ), but asked me to file this bug for it. -- 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