IRB raises exception when stdout is a pipe by pjones · Pull Request #353 · ruby/irb

When piping stdout to another process IRB fails: lib/ruby/3.0.0/irb/input-method.rb:42:in `winsize': Inappropriate ioctl for device (Errno::ENOTTY) For example: echo n=1 | irb | cat This bug ...