[ruby-core:111042] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe