* [ruby-core:118940] [Ruby master Bug#20696] `IO.read` ignores `err:` option
@ 2024-08-23 23:35 nobu (Nobuyoshi Nakada) via ruby-core
0 siblings, 0 replies; only message in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-08-23 23:35 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20696 has been reported by nobu (Nobuyoshi Nakada).
----------------------------------------
Bug #20696: `IO.read` ignores `err:` option
https://bugs.ruby-lang.org/issues/20696
* Author: nobu (Nobuyoshi Nakada)
* Status: Open
* 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 '<main>': unhandled exception
""
```
--
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/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-08-23 23:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-23 23:35 [ruby-core:118940] [Ruby master Bug#20696] `IO.read` ignores `err:` option nobu (Nobuyoshi Nakada) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).