jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JRuby
  • JRUBY-2896

jruby -S picks up script from local directory

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.3
  • Fix Version/s: JRuby 1.2
  • Component/s: Miscellaneous
  • Labels:
    None

Description

jruby -S looks for scripts in the current directory, even when not asked to. It should only look for them in PATH (maybe RUBYLIB?)

$ jruby -S spec spec/common_spec.rb
Error opening script file: /Users/assaf/work/buildr/spec (No such file or directory)

This shows what happens if there's a directory of the same name, but even if it was a file, it should not be picked up as a script unless listed in the PATH.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Charles Oliver Nutter added a comment - 12/Feb/09 4:05 AM

This works fine now after Nick made some fixes to -S handling.

Show
Charles Oliver Nutter added a comment - 12/Feb/09 4:05 AM This works fine now after Nick made some fixes to -S handling.

People

  • Assignee:
    Charles Oliver Nutter
    Reporter:
    Assaf Arkin
Vote (0)
Watch (1)

Dates

  • Created:
    04/Aug/08 6:17 PM
    Updated:
    21/Mar/09 1:14 PM
    Resolved:
    12/Feb/09 4:05 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.