Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6.5
    • Fix Version/s: JRuby 1.7.0.pre1
    • Component/s: Ruby 1.9.2
    • Labels:
      None
    • Environment:
      jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) Client VM 1.6.0_21) [SunOS-x86-java]
    • Number of attachments :
      0

      Description

      Since Ruby 1.9.2 at least, Kernel.system has the following signatures:
      system([env,] command... [,options])

      , where Kernel.system(

      {"FOO" => "BAR"}

      , "echo $FOO") would produce "BAR" as output and return 'true'

      On JRuby 1.6.5, it returns 'nil' instead.

        Activity

        Hide
        Tnarik added a comment -

        As a workaround, using ENV["FOO"]="BAR" before invoking Kernel.system("echo $FOO") works.

        Show
        Tnarik added a comment - As a workaround, using ENV ["FOO"] ="BAR" before invoking Kernel.system("echo $FOO") works.
        Hide
        Hiro Asari added a comment -

        Fixed in 24031a9.

        There should be a RubySpec for this.

        Show
        Hiro Asari added a comment - Fixed in 24031a9. There should be a RubySpec for this.

          People

          • Assignee:
            Hiro Asari
            Reporter:
            Tnarik
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: