Project

General

Profile

Actions

Bug #20696

open

`IO.read` ignores `err:` option

Added by nobu (Nobuyoshi Nakada) 3 months ago. Updated 3 months ago.

Status:
Open
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

Actions #1

Updated by nobu (Nobuyoshi Nakada) 3 months ago

  • Description updated (diff)
Actions

Also available in: Atom PDF

Like0
Like0