Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JRuby 1.7.0.pre2
    • Component/s: None
    • Labels:
      None
    • Environment:
      jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-17 c550df6) (Java HotSpot(TM) Client VM 1.6.0_26) [Windows 7-x86-java]
    • Number of attachments :
      0

      Description

      for instance this:

      {{

      { a = "|ls.exe" b = open(a, 'w') sleep 3 b.write 'q' }

      }}

      'should' result in a closed pipe message, instead it results in

      IOError: not opened for writing
      write at org/jruby/RubyIO.java:1332
      (root) at test.rb:4

        Activity

        Hide
        Roger Pack added a comment -

        work around: IO.popen("command", "w") seems to have the same effect

        Show
        Roger Pack added a comment - work around: IO.popen("command", "w") seems to have the same effect
        Hide
        Andy Lindeman added a comment -
        Show
        Andy Lindeman added a comment - Failing RubySpec: https://github.com/rubyspec/rubyspec/pull/139
        Hide
        Andy Lindeman added a comment -
        Show
        Andy Lindeman added a comment - Pull request: https://github.com/jruby/jruby/pull/177
        Hide
        Hiro Asari added a comment -

        Merged in 8ec1150. Thanks, Andy.

        Show
        Hiro Asari added a comment - Merged in 8ec1150. Thanks, Andy.

          People

          • Assignee:
            Hiro Asari
            Reporter:
            Roger Pack
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: