Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 0.9.8, JRuby 0.9.9, JRuby 1.0.0RC1, JRuby 1.0.0RC2
    • Fix Version/s: JRuby 1.0.0RC3
    • Component/s: None
    • Labels:
      None
    • Environment:
      jruby from trunk 16. April, java 1.5.0_11, win xp sp 2
    • Number of attachments :
      0

      Description

      JRuby seems to give 0 as process exit status even if it wasn't. Try this:

      C:\>jruby -e "system('ruby -e \"exit(2)\"');print $?>>8"
      0

      This is a jruby issue, since

      C:\>ruby -e "system('ruby -e \"exit(2)\"');print $?>>8"
      2

      As a minor detail, jruby seems to be a little smarter when finding stuff to execute:

      C:\>ruby -e "system('jruby -e \"exit(2)\"');print $?>>8"
      -e:1: undefined method `>>' for nil:NilClass (NoMethodError)

      i.e. "jruby" executable could not be found. However:

      C:\>ruby -e "system('jruby.bat -e \"exit(2)\"');print $?>>8"
      2

      And jruby seems to be smart enough to find the .bat file even w/out the suffix:

      C:\>jruby -e "system('jruby -e \"exit(2)\"');print $?>>8"
      0

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Nick Sieger
            Reporter:
            Antti Karanta
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: