Project

General

Profile

Actions

Bug #20696

closed

`IO.read` ignores `err:` option

Bug #20696: `IO.read` ignores `err:` option

Added by nobu (Nobuyoshi Nakada) over 1 year ago. Updated 8 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:118940]

Description

I expected the following code captures the error message, but err: option is ignored.

$ ruby -e 'p IO.read("|ruby -e raise", err: %i[child out])'
-e:1:in '<main>': unhandled exception
""

https://github.com/ruby/ruby/pull/11446

Updated by nobu (Nobuyoshi Nakada) over 1 year ago Actions #1

  • Description updated (diff)

Updated by nobu (Nobuyoshi Nakada) 8 days ago Actions #2 [ruby-core:125451]

  • Status changed from Open to Closed

IO.read from pipe has been deprecated.

Actions

Also available in: PDF Atom