From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2026-05-11T02:56:43+00:00 Subject: [ruby-core:125451] [Ruby Bug#20696] `IO.read` ignores `err:` option Issue #20696 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Closed `IO.read` from pipe has been deprecated. ---------------------------------------- Bug #20696: `IO.read` ignores `err:` option https://bugs.ruby-lang.org/issues/20696#change-117255 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- I expected the following code captures the error message, but `err:` option is ignored. ```shell-session $ ruby -e 'p IO.read("|ruby -e raise", err: %i[child out])' -e:1:in '
': unhandled exception "" ``` https://github.com/ruby/ruby/pull/11446 -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/